confirm-dialog
A simple paper-dialog wrapper.
Installation
bower i -S confirm-dialog # Polymer 2.0 hybrid (1.x compatible)
bower i -S confirm-dialog#^0.1 # Polymer 1.x based
Demo
<confirm-dialog id="dialog"></confirm-dialog>
<input id="heading" placeholder="heading" value="Heading"/><br/>
<input id="body" placeholder="body" value="Are you sure?"/><br/>
<input id="htmlContent" placeholder="html content" value="<i>Content Slot</i>"/><br/>
<input id="confirm" placeholder="confirm button" value="Confirm"/><br/>
<input id="cancel" placeholder="cancel button" value="Cancel"/><br/>
<input id="delay" placeholder="delay (ms)" value="1000"/><br/>
<label><input id="modal" type="checkbox"/>Modal</label><br/>
<label><input id="withBackdrop" type="checkbox" checked/>With backdrop</label><br/>
<button onclick="show()">Show</button>
<button onclick="showWithProperties()">Show with properties</button><br/>
Last Event: <span id="feedback"></span>
Full demo: webcomponents.org | github.
API: webcomponents.org
Contributing
- Fork it on Github.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request