Constructors
Section titled "Constructors"IgxExpansionPanelHeaderComponent
new IgxExpansionPanelHeaderComponent(): IgxExpansionPanelHeaderComponent Returns IgxExpansionPanelHeaderComponent
Properties
Section titled "Properties"cdr: ChangeDetectorRef Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:25
elementRef
Section titled "elementRef"elementRef: ElementRef<any> Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:26
iconPosition
Section titled "iconPosition"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 Sets/gets the id of the expansion panel header.
let panelHeaderId = this.panel.header.id; id: string = '' interaction
Section titled "interaction"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> 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
panel
Section titled "panel"panel: IgxExpansionPanelBase Defined in projects/igniteui-angular/expansion-panel/src/expansion-panel/expansion-panel-header.component.ts:24
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
Accessors
Section titled "Accessors"disabled
Section titled "disabled"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
Returns boolean
set disabled(val: boolean): void Parameters
- val:
boolean
Returns void
iconRef
Section titled "iconRef"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