@angular/material
Version:
Angular Material
57 lines (56 loc) • 2 kB
TypeScript
/**
* @license
* Copyright Google Inc. 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 { ChangeDetectorRef, OnDestroy, Renderer2, ElementRef } from '@angular/core';
import { MdExpansionPanel } from './expansion-panel';
import { FocusMonitor } from '@angular/cdk/a11y';
/**
* <md-expansion-panel-header> component.
*
* This component corresponds to the header element of an <md-expansion-panel>.
*
* Please refer to README.md for examples on how to use it.
*/
export declare class MdExpansionPanelHeader implements OnDestroy {
panel: MdExpansionPanel;
private _element;
private _focusMonitor;
private _changeDetectorRef;
private _parentChangeSubscription;
constructor(renderer: Renderer2, panel: MdExpansionPanel, _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;
}
/**
* <md-panel-description> directive.
*
* This direction is to be used inside of the MdExpansionPanelHeader component.
*/
export declare class MdExpansionPanelDescription {
}
/**
* <md-panel-title> directive.
*
* This direction is to be used inside of the MdExpansionPanelHeader component.
*/
export declare class MdExpansionPanelTitle {
}