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
Adding a general options/settings to set height for all panels across application:
MatExpansionPanelDefaultOptions
import { NgModule } from '@angular/core';
import { MAT_EXPANSION_PANEL_DEFAULT_OPTIONS } from '@angular/material';
@NgModule({
providers: [
{
provide: MAT_EXPANSION_PANEL_DEFAULT_OPTIONS,
useValue: {
hideToggle: true,
expandedHeight: '50px',
collapsedHeight: '50px'
}
}
]
})
export class AppMaterialModule {}