Skip to content

ECollapse Collapse ​

import EUI 1.0

Examples ​

Before-change validation and custom content ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Collapse ​

QML sourceQML
Preview
Run the code to try the component

Edit text, properties, or events, then select Run.

Code runs in this browser Licenses

Properties ​

PropertyDescriptionValues and default
accordionbool

Accordion mode allowing at most one expanded node or collapse item at a level.

Defaultfalse
activeNamesvar

Expanded collapse item names; accordion mode keeps at most one.

Default[]
beforeCollapsevar

Guard before changing collapse state, returning a boolean or Promise.

Defaultnull
contentDelegateComponent

Component slot for custom body content; null uses the default content. See this page’s examples for delegate context.

Defaultnull
enabledbool

Allow interaction; false disables the control.

Defaulttrue
expandIconPositionstring

Position of the collapse icon relative to the title.

"left" / "right"

Default"right"
heightreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitHeight
iconDelegateComponent

Component slot for custom icon; null uses the default content. See this page’s examples for delegate context.

Defaultnull
modelvar

Array of collapse panel data.

Fields:
name, title, content
disabled, icon, titleDelegate
iconDelegate, contentDelegate

Default[]
pendingNamesvar

Names of items awaiting asynchronous collapse guards.

Default[]
titleDelegateComponent

Component slot for custom title; null uses the default content. See this page’s examples for delegate context.

Defaultnull
visiblebool

Whether the component is visible.

Defaulttrue
widthreal

Component size in pixels; may be bound to its parent layout.

DefaultimplicitWidth

Signals ​

SignaturePurpose
changed(var names)

Emitted when expanded panels change; names contains the expanded panel names.

Methods ​

SignaturePurpose
isExpanded(name)

Return whether the specified item is expanded.

setActiveNames(names)

Set the names of the expanded panels.

toggle(name)

Toggle the expanded or selected state; pass the target identifier when required.

Released under the MIT License. Third-party assets retain their own licenses.