Constructors
Section titled "Constructors"IgxExpansionPanelBodyComponent
new IgxExpansionPanelBodyComponent(): IgxExpansionPanelBodyComponent Returns IgxExpansionPanelBodyComponent
Properties
Section titled "Properties"cdr: ChangeDetectorRef Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts:13
element
Section titled "element"element: ElementRef<any> Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts:12
panel
Section titled "panel"panel: IgxExpansionPanelBase Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-body.component.ts:11
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
Accessors
Section titled "Accessors"label
Section titled "label"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
labelledBy
Section titled "labelledBy"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