MaterialExpansionPanelAutoDismiss class

A directive that automatically collapses MaterialExpansionPanel.

When a MaterialExpansionPanel is expanded, any click outside of it will automatically collapses the panel.

Example usage:

<material-expansionpanel autoDismissable>
</material-expansionpanel>
Annotations
  • @Directive(selector: 'material-expansionpanel[autoDismissable]')

Constructors

MaterialExpansionPanelAutoDismiss(MaterialExpansionPanel _expansionPanel, @Optional() @Inject(overlayContainerToken) Element? _overlayContainerToken, HtmlElement _element)

Properties

hashCode int
The hash code for this object.
no setterinherited
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
onExpandedChanged(bool expand) → void
Handles expanded status changes from the panel.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited