ember-essential-modifiers
v1.0.2
Published
An essential collection of Ember.js modifiers
Downloads
16
Maintainers
Readme
ember-essential-modifiers
An essential Ember.js modifiers collection
Compatibility
- Ember.js v4.8 or above
- Ember CLI v4.8 or above
- Node.js v18 or above
Installation
ember install ember-essential-modifiers
Usage
- toggle-class:
Toggles className depends on isOn value
<div {{toggle-class isOn=true className="active">
Menu
</div>
Result:
<div class="active">Menu</div>
show-popover
Displays a popover
<div role="alert" popover="manual" {{show-popover duration=3000}}>
Warning!
</div>
params:
duration, ms: Number of milliseconds before a popover will be closed
if not set or zero: popover will not be closed.
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.