Emitted when the expansion panel finishes collapsing
handleCollapsed(event: IExpansionPanelEventArgs)
<igx-expansion-panel (contentCollapsed)="handleCollapsed($event)">
...
</igx-expansion-panel>
Emitted when the expansion panel starts collapsing
handleCollapsing(event: IExpansionPanelCancelableEventArgs)
<igx-expansion-panel (contentCollapsing)="handleCollapsing($event)">
...
</igx-expansion-panel>
Emitted when the expansion panel finishes expanding
handleExpanded(event: IExpansionPanelEventArgs)
<igx-expansion-panel (contentExpanded)="handleExpanded($event)">
...
</igx-expansion-panel>
Emitted when the expansion panel starts expanding
handleExpanding(event: IExpansionPanelCancelableEventArgs)
<igx-expansion-panel (contentExpanding)="handleExpanding($event)">
...
</igx-expansion-panel>
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;
IgxExpansionPanelComponent
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>
Gets/sets whether the component is collapsed (its content is hidden) Get
Set
Two-way data binding: