@angular/material
Version:
Angular Material
41 lines (40 loc) • 2.11 kB
TypeScript
import { ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
import { CanDisable } from '@angular/material/core';
import { Subject } from 'rxjs/Subject';
import { MatAccordion } from './accordion';
import { AccordionItem } from './accordion-item';
/** @docs-private */
export declare class MatExpansionPanelBase extends AccordionItem {
constructor(accordion: MatAccordion, _changeDetectorRef: ChangeDetectorRef, _uniqueSelectionDispatcher: UniqueSelectionDispatcher);
}
export declare const _MatExpansionPanelMixinBase: (new (...args: any[]) => CanDisable) & typeof MatExpansionPanelBase;
/** MatExpansionPanel's states. */
export declare type MatExpansionPanelState = 'expanded' | 'collapsed';
/** Time and timing curve for expansion panel animations. */
export declare const EXPANSION_PANEL_ANIMATION_TIMING = "225ms cubic-bezier(0.4,0.0,0.2,1)";
/**
* <mat-expansion-panel> component.
*
* This component can be used as a single element to show expandable content, or as one of
* multiple children of an element with the CdkAccordion directive attached.
*
* Please refer to README.md for examples on how to use it.
*/
export declare class MatExpansionPanel extends _MatExpansionPanelMixinBase implements CanDisable, OnChanges, OnDestroy {
/** Whether the toggle indicator should be hidden. */
hideToggle: boolean;
/** Stream that emits for changes in `@Input` properties. */
_inputChanges: Subject<SimpleChanges>;
constructor(accordion: MatAccordion, _changeDetectorRef: ChangeDetectorRef, _uniqueSelectionDispatcher: UniqueSelectionDispatcher);
/** Whether the expansion indicator should be hidden. */
_getHideToggle(): boolean;
/** Determines whether the expansion panel should have spacing between it and its siblings. */
_hasSpacing(): boolean;
/** Gets the expanded state string. */
_getExpandedState(): MatExpansionPanelState;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
}
export declare class MatExpansionPanelActionRow {
}