New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expansion panel open by default #6962
Comments
You can do:
|
Thanks, perfect! |
easy peasy, thanks for the tip. |
doesn't that mean it's always expanded? or just initially expanded? |
Adding [expanded]="true" to mat-expansion-panel will expand the panel initially. You can still collapse it when you click the toggle header. |
is this documented on http://material.angular.io? |
Yes in API there is @ Input part where you can see it. Follow the docs @pcnate |
how to open mat-expansion in upward direction? |
Since merely assigning true, rather than doing anything to it programmatically, this also works:
|
如果是循环md-expansion-panel呢 这样加expanded 会报错 也只默认最后一个是展开的 有遇到这种情况德吗(What if it's a loop called md-expansion panel so expanded will report an error and it will simply expand the last one by default. Is that the case) |
How can I expand all the expansion-panel by default? [expanded]="true" only works for one panel whichever is the latest. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
I've been searching for a way to open the open expansion panel by default, very little in the documentations, is this possible or shall we raise as a feature request?
The text was updated successfully, but these errors were encountered: