IgxExpansionPanelBodyComponent

new IgxExpansionPanelBodyComponent(): IgxExpansionPanelBodyComponent

Returns IgxExpansionPanelBodyComponent

Gets/sets the role attribute of the panel body Default is 'region'; Get

const currentRole = this.panel.body.role;

Set

this.panel.body.role = 'content';
<igx-expansion-panel-body [role]="'custom'"></igx-expansion-panel-body>
role: string = 'region'

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts:38

Gets the aria-label attribute of the panel body Defaults to the panel id with '-region' in the end; Get

const currentLabel = this.panel.body.label;
get label(): string

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts:53

Returns string

Sets the aria-label attribute of the panel body

this.panel.body.label = 'my-custom-label';
<igx-expansion-panel-body [label]="'my-custom-label'"></igx-expansion-panel-body>
set label(val: string): void

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts:65

Parameters

  • val: string

Returns void

Gets the aria-labelledby attribute of the panel body Defaults to the panel header id; Get

const currentLabel = this.panel.body.labelledBy;
get labelledBy(): string

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts:79

Returns string

Sets the aria-labelledby attribute of the panel body

this.panel.body.labelledBy = 'my-custom-id';
<igx-expansion-panel-body [labelledBy]="'my-custom-id'"></igx-expansion-panel-body>
set labelledBy(val: string): void

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts:91

Parameters

  • val: string

Returns void