MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/material/expansion/expansion-panel.ts:151–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 _headerId: string = inject(_IdGenerator).getId('mat-expansion-panel-header-');
150
151 constructor() {
152 super();
153
154 const defaultOptions = inject<MatExpansionPanelDefaultOptions>(
155 MAT_EXPANSION_PANEL_DEFAULT_OPTIONS,
156 {optional: true},
157 );
158
159 this._expansionDispatcher = inject(UniqueSelectionDispatcher);
160
161 if (defaultOptions) {
162 this.hideToggle = defaultOptions.hideToggle;
163 }
164 }
165
166 /** Determines whether the expansion panel should have spacing between it and its siblings. */
167 _hasSpacing(): boolean {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected