Adds ability to hide template content of a component under a given set of conditions
- Source:
Extends
- ember/Mixin
Members
(inner) behaviorService :ember/Service
The behavior service used to check if a supplied behavior is allowed
Type:
- ember/Service
- Source:
(inner) layout :Object
Type:
- Object
- Source:
(inner) possible :Boolean|function
Indicates whether an activity is allowed if the behaviors set on the service allow it
When set to a function, the return value must be a Boolean and will not be observed by the showContent() method.
Type:
- Boolean | function
- Default Value:
- true
- Source:
(inner) tagName :String
Type:
- String
- Default Value:
- 'span'
- Source:
Methods
(abstract, inner) isViewable() → {Boolean}
Implement this function to customize the block content's viewability
- Source:
Throws:
-
If this function has not been implemented on the derived class
- Type
- ember.assert
Returns:
true if the content is viewable, otherwise false
- Type
- Boolean
(inner) showContent() → {Boolean}
Determines whether or not to show the content in the template
- Source:
Observes:
- behaviorService.behaviors, possible
Throws:
-
If the
possible
property is not a Boolean - Type
- ember.assert
Returns:
- Type
- Boolean