I want to create an expansion panel like the one in the demo. I don't see where the api for this is. How is it invoked?
To disable the panel, add the disabled directive to the panel element and set it to true. To enabled it, set it to false. We can also group multiple panels by using the mat-accordion element.
The default icon for toggling a mat-expansion-panel is > . Setting hideToggle true just hides the toggle icon.
There's one built into the sidenav on the angular material site: https://material.angularjs.org/. It's not offered as a separate component, but the source is there.
Also, this was a planned feature at one point in time, but was marked as deprecated recently: https://github.com/angular/material/issues/985.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With