src/lib/markup-kit/collapse/collapse-set/collapse-set.component.ts
Component representing a set of collapsible panels.
Example of usage:
<mefdev-collapse-set [Accordion]="true" [Horizontal]="true" [expandAny]="false">
<mefdev-collapse [Disabled]="false" [Active]="true">
<!-- Content for the collapse panel -->
<h3>Panel 1</h3>
<p>Panel 1 content...</p>
</mefdev-collapse>
<mefdev-collapse [Disabled]="false" [Active]="false">
<!-- Content for the collapse panel -->
<h3>Panel 2</h3>
<p>Panel 2 content...</p>
</mefdev-collapse>
<mefdev-collapse [Disabled]="false" [Active]="false">
<!-- Content for the collapse panel -->
<h3>Panel 3</h3>
<p>Panel 3 content...</p>
</mefdev-collapse>
</mefdev-collapse-set>
encapsulation | ViewEncapsulation.None |
selector | mefdev-collapse-set |
styleUrls | ./collapse-set.component.scss |
templateUrl | ./collapse-set.component.html |
Properties |
Methods |
Inputs |
Accessors |
Accordion |
Type : boolean
|
Indicates whether the collapse set operates as an accordion.
Set this to |
expandAny |
Type : boolean
|
Indicates whether multiple panels can be expanded simultaneously.
Set this to |
Horizontal |
Type : boolean
|
Indicates whether the collapse set is displayed horizontally or vertically.
Set this to |
addTab | ||||||||
addTab(collapse: CollapseComponent)
|
||||||||
Adds a collapse panel to the collapse set.
Parameters :
Returns :
void
|
pgClick | ||||||||
pgClick(collapse: CollapseComponent)
|
||||||||
Event handler for the click event on a collapse panel. Closes other panels if the collapse set is an accordion and does not allow multiple expansions.
Parameters :
Returns :
void
|
panels |
Type : CollapseComponent[]
|
Default value : []
|
expandAny | ||||||
getexpandAny()
|
||||||
setexpandAny(value: boolean)
|
||||||
Indicates whether multiple panels can be expanded simultaneously.
Set this to
Parameters :
Returns :
void
|
Accordion | ||||||
getAccordion()
|
||||||
setAccordion(value: boolean)
|
||||||
Indicates whether the collapse set operates as an accordion.
Set this to
Parameters :
Returns :
void
|
Horizontal | ||||||
getHorizontal()
|
||||||
setHorizontal(value: boolean)
|
||||||
Indicates whether the collapse set is displayed horizontally or vertically.
Set this to
Parameters :
Returns :
void
|