Skip to content

Commit

Permalink
add example to dummy and to README
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenLunchbox committed Nov 12, 2015
1 parent 1839d47 commit 1cd412e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ ember install:addon ember-confirm-extension
{{#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
Expand Down
7 changes: 7 additions & 0 deletions tests/dummy/app/templates/application.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@
{{/confirm-extension}} THIS IS <strong>DANGEROUS</strong>!
<p>I'm positive. This power should not be abused</p>
</div>

<h1>Simple Styles With Added Explanation Text</h1>
<div class="simple-styles">
{{#confirm-extension questionText='Do you really want to destroy our home planet?' confirmText='sure!' explanationText='ATTENTION! THIS IS DANGEROUS!' declineText='no' confirmAction='boom'}}
<button>Destroy planet earth</button>
{{/confirm-extension}}
</div>

0 comments on commit 1cd412e

Please sign in to comment.