# email-modal

> WIP: Ember addon which has an uses a bootstrap modal for sending an email.

Latest version **0.0.10** (published 2018-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install email-modal
pnpm add email-modal
yarn add email-modal
bun add email-modal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2018-05-02 |
| First published | 2017-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.12.0 |
| Dependencies | 3 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | vicamuso |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/email-modal
- Repository: https://github.com/parablesoft/email-modal
- Homepage: https://github.com/parablesoft/email-modal#readme
- Issues: https://github.com/parablesoft/email-modal/issues
- npm.io page: https://npm.io/package/email-modal

## Dependencies (3)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.7
- [ember-async-button](https://npm.io/package/ember-async-button.md) 1.0.2
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^1.0.10

## Recent versions

- 0.0.10 (latest) — 2018-05-02
- 0.0.9 — 2017-10-02
- 0.0.8 — 2017-01-13
- 0.0.7 — 2017-01-13
- 0.0.6 — 2017-01-13
- 0.0.5 — 2017-01-13
- 0.0.4 — 2017-01-13
- 0.0.3 — 2017-01-13
- 0.0.2 — 2017-01-13
- 0.0.1 — 2017-01-13

## README

# email-modal
This is an ember addon which uses an ember-bootstrap modal to display an poor man's email client. Front-end implementation only. 


## Installation

ember-install email-modal



## Usage

Will be updating this soon. Below is only a simple example. There are many other options. In the template, you can use a block version which allows you to pass in content that will be displayed on the right side of the modal.


**template**
```
<button {{action "openModal"}}>Open</button>
{{#if isShowingModal}}
	{{email-modal 
		on-close=(action "closeModal") 
		on-send-email=(action "asyncSendEmail")
	}}
{{/if}}

```

**controller or component**
```
import Ember from 'ember';

const {set,Controller} = Ember;
export default Controller.extend({
  toggleModal(show=true){
    set(this,"isShowingModal",show);
  },
  actions:{
    openModal(){
      this.toggleModal();
    },
    closeModal(){
      this.toggleModal(false);
    },
    asyncSendEmail(){
      return new Ember.RSVP.Promise((resolve)=>{
		return Ember.run.later(this,function(){
		  resolve();
		},1500);
      });
    },
  }
});

```

---
_Source: https://npm.io/package/email-modal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
