https://github.com/nullvoxpopuli/ember-noop
helpers for conditional actions.
https://github.com/nullvoxpopuli/ember-noop
Last synced: over 1 year ago
JSON representation
helpers for conditional actions.
- Host: GitHub
- URL: https://github.com/nullvoxpopuli/ember-noop
- Owner: NullVoxPopuli
- License: mit
- Created: 2019-11-30T15:03:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T00:38:17.000Z (almost 3 years ago)
- Last Synced: 2025-04-15T22:51:47.513Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 316 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-noop
==============================================================================
Ever wanted to have an optional action? maybe with the `on` modifier?
_Now you can!_
*Using the `noop` helper*
```hbs
if condition is falsey, clicking won't do anything
```
*Using the `fn-if` helper*
```hbs
This provides a shorthand for the above
```
_Note: It's recommended to use `disabled` with unclickable buttons._
Compatibility
------------------------------------------------------------------------------
* Ember.js v3.11+
* Ember.js v2.18+ with the [on modifier polyfill](https://github.com/buschtoens/ember-on-modifier)
* Any Ember version, because these are just helpers, and helper have been around for a while.
Installation
------------------------------------------------------------------------------
```
ember install ember-noop
```
Contributing
------------------------------------------------------------------------------
See the [Contributing](CONTRIBUTING.md) guide for details.
License
------------------------------------------------------------------------------
This project is licensed under the [MIT License](LICENSE.md).