ember-safe-button
v3.0.0
Published
For potentially dangerous actions that better needs a confirmation.
Downloads
3
Readme
ember-safe-button
Provides a button for potentially dangerous actions that better needs a confirmation. First click unlocks the fuse, second then confirms. If no confirmation is provided, then the button returns the safety in place after a timeout.
Compatibility
- Ember.js v3.20 or above
- Ember CLI v3.20 or above
- Node.js v12 or above
Installation
ember install ember-safe-button
Usage
Minimal example:
<SafeButton
@message="delete"
@onConfirm={{this.safeButtonClicked}}
/>
Which will produce:
Documentation
For many more examples and API design see ember-safe-button documentation website.
Contributing
See the Contributing guide for details.
Compatibility
- Ember.js v3.16 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
Contributors
License
This project is licensed under the MIT License.