Class IgxExpansionPanelComponent

Hierarchy

Hierarchy

  • ToggleAnimationPlayer
    • IgxExpansionPanelComponent

Implements

  • IgxExpansionPanelBase
  • AfterContentInit

Constructors

Properties

collapsed: boolean = true

Gets/sets whether the component is collapsed (its content is hidden) Get

 const myPanelState: boolean = this.panel.collapsed;

Set

 this.panel.collapsed = true;

Two-way data binding:

<igx-expansion-panel [(collapsed)]="model.isCollapsed"></igx-expansion-panel>
contentCollapsed: EventEmitter<IExpansionPanelEventArgs> = ...

Emitted when the expansion panel finishes collapsing

 handleCollapsed(event: IExpansionPanelEventArgs)
 <igx-expansion-panel (contentCollapsed)="handleCollapsed($event)">
...
</igx-expansion-panel>
contentCollapsing: EventEmitter<IExpansionPanelCancelableEventArgs> = ...

Emitted when the expansion panel starts collapsing

 handleCollapsing(event: IExpansionPanelCancelableEventArgs)
 <igx-expansion-panel (contentCollapsing)="handleCollapsing($event)">
...
</igx-expansion-panel>
contentExpanded: EventEmitter<IExpansionPanelEventArgs> = ...

Emitted when the expansion panel finishes expanding

 handleExpanded(event: IExpansionPanelEventArgs)
 <igx-expansion-panel (contentExpanded)="handleExpanded($event)">
...
</igx-expansion-panel>
contentExpanding: EventEmitter<IExpansionPanelCancelableEventArgs> = ...

Emitted when the expansion panel starts expanding

 handleExpanding(event: IExpansionPanelCancelableEventArgs)
 <igx-expansion-panel (contentExpanding)="handleExpanding($event)">
...
</igx-expansion-panel>
id: string = ...

Sets/gets the id of the expansion panel component. If not set, id will have value "igx-expansion-panel-0";

<igx-expansion-panel id = "my-first-expansion-panel"></igx-expansion-panel>
let panelId =  this.panel.id;

Memberof

IgxExpansionPanelComponent

Accessors

  • get animationSettings(): ToggleAnimationSettings
  • Sets/gets the animation settings of the expansion panel component Open and Close animation should be passed

    Get

     const currentAnimations = this.panel.animationSettings;
    

    Set

     import { slideInLeft, slideOutRight } from 'igniteui-angular';
    ...
    this.panel.animationsSettings = {
    openAnimation: slideInLeft,
    closeAnimation: slideOutRight
    };

    or via template

     import { slideInLeft, slideOutRight } from 'igniteui-angular';
    ...
    myCustomAnimationObject = {
    openAnimation: slideInLeft,
    closeAnimation: slideOutRight
    };
    ```html
    <igx-expansion-panel [animationSettings]='myCustomAnimationObject'>
    ...
    </igx-expansion-panel>

    Returns ToggleAnimationSettings

  • set animationSettings(value): void
  • Parameters

    • value: ToggleAnimationSettings

    Returns void

Methods