# ember-confirm-extension

> Extend any template block by a confirmation "bubble"

Latest version **0.0.5** (published 2015-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-confirm-extension
pnpm add ember-confirm-extension
yarn add ember-confirm-extension
bun add ember-confirm-extension
```

## 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.5 |
| Published | 2015-11-13 |
| First published | 2015-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | advertate |
| Maintainers | advertate |
| Keywords | ember-addon, confirmation, confirm |

## Links

- npm: https://www.npmjs.com/package/ember-confirm-extension
- Repository: https://github.com/advertate/ember-confirm-extension
- Homepage: https://github.com/advertate/ember-confirm-extension#readme
- Issues: https://github.com/advertate/ember-confirm-extension/issues
- npm.io page: https://npm.io/package/ember-confirm-extension

## Dependencies (1)

- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) 0.7.4

## Recent versions

- 0.0.5 (latest) — 2015-11-13
- 0.0.4 — 2015-07-23
- 0.0.3 — 2015-03-24
- 0.0.2 — 2015-03-23
- 0.0.1 — 2015-03-23

## README

# ember-confirm-extension

[Demo](http://advertate.github.io/)

Extend any template block by a confirmation "bubble".

Use confirmation mechanisms (buttons/bubbles/dialogs) with caution. The are not always the best choice UX-wise. For more information on that topic see:
* [Never Use a Warning When you Mean Undo](http://alistapart.com/article/neveruseawarning)
* [Deletion: Confirm or Undo? Which is the better option and why?](http://ux.stackexchange.com/questions/71960/deletion-confirm-or-undo-which-is-the-better-option-and-why)
* [Try Undos instead of prompting for confirmation](https://goodui.org/#8)
* [Undo](http://patternry.com/p=undo/)

## Installation

```bash
ember install:addon ember-confirm-extension
```

## Usage

```handlebars
{{#confirm-extension questionText='Do you really want to destroy the planet?' confirmText='Yes' declineText='No' confirmAction='destroyEarth'}}
  <button>Destroy Earth</button>
{{/confirm-extension}}

<!-- with optional explanation text -->
{{#confirm-extension questionText='Do you really want to destroy the planet?' explanationText="be careful you might get dirty" confirmText='Yes' declineText='No' confirmAction='destroyEarth'}}
  <button>Destroy Earth</button>
{{/confirm-extension}}
```

## Styling

Take a look at the [component's template](https://github.com/advertate/ember-confirm-extension/tree/master/addon/templates/components/confirm-extension.hbs) to see which css classes are used.

## Contributions

PRs are always welcome! Make sure that code changes are covered by tests.

## License

MIT

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