In order to work with expansion panel we should import matexpansionmodule into our module file just like this.
Mat expansion panel with icon.
The content of the expansion panel.
Contains summary of panel and acts as control to expand or collapse the panel.
Returned elementref reference for dom element.
An accordion is an interactive component consisting of panels with headers and content section.
If true expands the.
The mat expansion panel an angular directive is used to create an expandable detail v s summary view.
We are very well familiar withread more.
Enables lazy rendering for all expansion panel details in the accordion.
Specifies an inline style for an dom element.
If true the panel will be displayed in a disabled state.
If true expands the panel by default.
See css api below for more details.
Override or extend the styles applied to the component.
In this post we ll implement expansion panel which can also be converted into an accordion component in angular application using material ul library.
Notes the mat expansion panel components are encapsulated in an mat accordion element.
Mat expansion panel header represents the header section.
These panels can be clicked to expand collapse to show description area.
The code itself for the several sections is encapsulated in own component for better code readability and to access them directly howto get started.
Hides toggle icon for all expansion panel summaries in the accordion.