MaterialExpansionPanelSet class
A directive which will turn a set of MaterialExpansionPanels into an accordion widget, thus only allowing only one MaterialExpansionPanel to be open at a time.
MaterialExpansionPanelSet must be used with MaterialExpansionPanel as direct children. For example, the set will not work for the following scenario:
@Component(
selector: 'middle-man',
template: '<material-expansionpanel></material-expansionpanel>',
directives: [MaterialExpansionPanel],
)
class MiddleManComponent {}
<material-expansionpanel-set>
<middle-man></middle-man>
<middle-man></middle-man>
</material-expansionpanel-set>
- Annotations
-
- @Directive(selector: 'material-expansionpanel-set')
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
panels
← List<
MaterialExpansionPanel> ? -
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ngOnDestroy(
) → void - Executed before the directive is removed from the DOM and destroyed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited