Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ternary operator in classNames
This commit extends bindings to class names by adding support for falsy class names using the ternary operator as following: Ember.View.create({ classNameBindings: ['isEnabled?enabled:disabled'] isEnabled: true }); This will add the class 'enabled' when isEnabled is true. If isEnabled is false the class 'disabled' is added instead.
- Loading branch information
Showing
4 changed files
with
117 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters