UNPKG

@angular/material

Version:
50 lines (49 loc) 1.81 kB
import { FocusMonitor } from '@angular/cdk/a11y'; import { ChangeDetectorRef, ElementRef, OnDestroy, Renderer2 } from '@angular/core'; import { MatExpansionPanel } from './expansion-panel'; /** * <mat-expansion-panel-header> component. * * This component corresponds to the header element of an <mat-expansion-panel>. * * Please refer to README.md for examples on how to use it. */ export declare class MatExpansionPanelHeader implements OnDestroy { panel: MatExpansionPanel; private _element; private _focusMonitor; private _changeDetectorRef; private _parentChangeSubscription; constructor(renderer: Renderer2, panel: MatExpansionPanel, _element: ElementRef, _focusMonitor: FocusMonitor, _changeDetectorRef: ChangeDetectorRef); /** Height of the header while the panel is expanded. */ expandedHeight: string; /** Height of the header while the panel is collapsed. */ collapsedHeight: string; /** Toggles the expanded state of the panel. */ _toggle(): void; /** Gets whether the panel is expanded. */ _isExpanded(): boolean; /** Gets the expanded state string of the panel. */ _getExpandedState(): string; /** Gets the panel id. */ _getPanelId(): string; /** Gets whether the expand indicator should be shown. */ _showToggle(): boolean; /** Handle keyup event calling to toggle() if appropriate. */ _keyup(event: KeyboardEvent): void; ngOnDestroy(): void; } /** * <mat-panel-description> directive. * * This direction is to be used inside of the MatExpansionPanelHeader component. */ export declare class MatExpansionPanelDescription { } /** * <mat-panel-title> directive. * * This direction is to be used inside of the MatExpansionPanelHeader component. */ export declare class MatExpansionPanelTitle { }