ember-safe-button

3.0.0 • Public • Published

ember-safe-button logo

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:

Example

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.

Attribution

Icons made by DinosoftLabs from www.flaticon.com
Icons made by surang from www.flaticon.com

Readme

Keywords

Package Sidebar

Install

npm i ember-safe-button

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

65.8 kB

Total Files

55

Last publish

Collaborators

  • michal.bryxi