Collapse

Use Collapse to store contents.

Basic usage

You can expand multiple panels

Consistency

Consistent with real life: in line with the process and logic of real life, and comply with languages and habits that the users are used to;

Consistent within interface: all elements should be consistent, such as: design style, icons and texts, position of elements, etc.


Accordion

In accordion mode, only one panel can be expanded at once. Activate accordion mode using the accordion attribute.

Consistency

Consistent with real life: in line with the process and logic of real life, and comply with languages and habits that the users are used to;

Consistent within interface: all elements should be consistent, such as: design style, icons and texts, position of elements, etc.


Custom Title

Besides using the title attribute, you can customize panel title with named slots, which makes adding custom content, e.g. icons, possible.

Consistency

Consistent with real life: in line with the process and logic of real life, and comply with languages and habits that the users are used to;

Consistent within interface: all elements should be consistent, such as: design style, icons and texts, position of elements, etc.


Collapse Attributes

AttributeDescriptionTypeAccepted ValuesDefault
model-value / v-modelcurrently active panelstring (accordion mode) / array (non-accordion mode)
accordionwhether to activate accordion modebooleanfalse

Collapse Events

Event NameDescriptionParameters
changetriggers when active panels change(activeNames: array (non-accordion mode) / string (accordion mode))

Collapse Slots

NameDescriptionSubtags
-customize default contentCollapse Item

Collapse Item Attributes

AttributeDescriptionTypeAccepted ValuesDefault
nameunique identification of the panelstring/number
titletitle of the panelstring
disableddisable the collapse itemboolean

Collapse Item Slot

NameDescription
content of Collapse Item
titlecontent of Collapse Item title
Last Updated: 10/1/2022, 6:04:27 AM
Contributors: Tam Mai