Material Angular Accordion header/title height

后端 未结 4 1581
难免孤独
难免孤独 2021-02-03 18:52

So I\'ve been trying to adopt Materials Accordion in my Web Application development.

However having some troubles getting the header to expand in size as the content gro

4条回答
  •  误落风尘
    2021-02-03 19:16

    You dont have to use ::ng-deep. You can use [collapsedHeight] and [expandedHeight] on your mat-expansion-panel-header.

    
        
            
                Section 1
            
            

    This is the content text that makes sense here.

    Link to StackBlitz Demo.

提交回复
热议问题