IgxExpansionPanelHeaderComponent

new IgxExpansionPanelHeaderComponent(): IgxExpansionPanelHeaderComponent

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:207

Returns IgxExpansionPanelHeaderComponent

Gets/sets the position of the expansion-panel-header expand/collapse icon Accepts left, right or none

const currentIconPosition = this.panel.header.iconPosition;

Set

this.panel.header.iconPosition = 'left';
<igx-expansion-panel-header [iconPosition]="'right'"></igx-expansion-panel-header>
iconPosition: ExpansionPanelHeaderIconPosition = ExpansionPanelHeaderIconPosition.LEFT

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:117

Sets/gets the id of the expansion panel header.

let panelHeaderId =  this.panel.header.id;
id: string = ''

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:198

Emitted whenever a user interacts with the header host

handleInteraction(event: IExpansionPanelCancelableEventArgs) {
 ...
}
<igx-expansion-panel-header (interaction)="handleInteraction($event)">
     ...
 </igx-expansion-panel-header>
interaction: EventEmitter<IExpansionPanelCancelableEventArgs>

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:133

Gets/sets the aria-level attribute of the header Get

const currentAriaLevel = this.panel.header.lv;

Set

this.panel.header.lv = '5';
<igx-expansion-panel-header [lv]="myCustomLevel"></igx-expansion-panel-header>
lv: string = '3'

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:68

Gets/sets the role attribute of the header Get

const currentRole = this.panel.header.role;

Set

this.panel.header.role = '5';
<igx-expansion-panel-header [role]="'custom'"></igx-expansion-panel-header>
role: string = 'heading'

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:86

Gets/sets the whether the header is disabled When disabled, the header will not handle user events and will stop their propagation

const isDisabled = this.panel.header.disabled;

Set

this.panel.header.disabled = true;
<igx-expansion-panel-header [disabled]="true">
    ...
 </igx-expansion-panel-header>
get disabled(): boolean

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:168

Returns boolean

set disabled(val: boolean): void

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:172

Parameters

  • val: boolean

Returns void

Returns a reference to the igx-expansion-panel-icon element; If iconPosition is NONE - return null;

get iconRef(): ElementRef

Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:32

Returns ElementRef