Class: ExpansionPanelsModel

ExpansionPanelsModel()

ExpansionPanelsModel maintains state for multiple ExpansionPanelView instances so that only one is open at a time.

Constructor

new ExpansionPanelsModel()

Source:

Members

defaults :Object

Type:
  • Object
Properties:
Name Type Description
panels Array.<ExpansionPanelView> The expansion panel views that are meant to have only a single panel open at a time.
isMulti boolean Whether multiple panels can be open at the same time when displayed in a group of panels.
Source:

Methods

maybeCollapseOthers()

Collapse all panels except for the newly opened panel for certain open modes.
Properties:
Name Type Description
openedPanel ExpansionPanelView The expansion panel view that should remain open.
Source:

register()

Register a panel to coordinate collapse state.
Properties:
Name Type Description
panel ExpansionPanelView The expansion panel view to be tracked.
Source: