@angular/material
Version:
Angular Material
55 lines (54 loc) • 1.9 kB
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { FocusMonitor } from '@angular/cdk/a11y';
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
import { MatExpansionPanel } from './expansion-panel';
/**
* `<mat-expansion-panel-header>`
*
* This component corresponds to the header element of an `<mat-expansion-panel>`.
*/
export declare class MatExpansionPanelHeader implements OnDestroy {
panel: MatExpansionPanel;
private _element;
private _focusMonitor;
private _changeDetectorRef;
private _parentChangeSubscription;
constructor(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 keydown event calling to toggle() if appropriate. */
_keydown(event: KeyboardEvent): void;
ngOnDestroy(): void;
}
/**
* `<mat-panel-description>`
*
* This direction is to be used inside of the MatExpansionPanelHeader component.
*/
export declare class MatExpansionPanelDescription {
}
/**
* `<mat-panel-title>`
*
* This direction is to be used inside of the MatExpansionPanelHeader component.
*/
export declare class MatExpansionPanelTitle {
}