A simple paper-dialog wrapper.

[ This description is mirrored from README.md at github.com/jifalops/confirm-dialog on 2019-05-22 ]

Published on webcomponents.org

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>&nbsp;
<button onclick="showWithProperties()">Show with properties</button><br/>
Last Event: <span id="feedback"></span>

Full demo: webcomponents.org | github.

API: webcomponents.org

Contributing

  1. Fork it on Github.
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

MIT

Install

Link to this version
ImportedReleased 23 August 2017MIT License
Framework Support
Polymer 2.0+
Also supported:
Polymer 1 (0.1.1)
Browser Compatibility
Install with
bower install --save jifalops/confirm-dialog"#0.2.0"
Run the above Bower command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 0.2.0

Dependencies

  • polymer#^2.0.0
  • paper-dialog#^2.0.0
  • paper-button#^2.0.0
  • paper-styles#^2.0.0