interface QExpansionItemProps extends HTMLAttributes<HTMLDivElement>
?: string = undefined?: boolean = false?: boolean = false?: boolean = false?: number = undefined?: MaterialSymbol = "keyboard_arrow_down"
?: boolean = false?: MaterialSymbol = undefined
?: boolean = false?: string = undefined?: MaterialSymbol = undefined
?: string = undefined?: string = undefined?: boolean = false?: boolean = false?: MouseEventHandler<HTMLElement> = undefined
?: MouseEventHandler<HTMLElement> = undefined
?: KeyboardEventHandler<HTMLElement> = undefined
?: boolean = false?: HTMLAnchorAttributes["target"] = undefined
?: string = undefined?: string = undefined?: boolean = $bindable(defaultOpened)
QList. The whole header opens the panel by
default. Add an icon and caption, start open with defaultOpened, or make a row unavailable with disabled.name close one another when opened. Groups are scoped to
their containing QList: these two lists share a name but expand
independently. Remove the name to allow multiple open panels.duration is in milliseconds; the default
is 300 in standard lists and 350 in expressive lists.A single expandIcon rotates when open. Pair it with expandedIcon to swap glyphs, or use noRotateExpandIcon to keep it still. hideExpandIcon hides only the decoration; the whole header remains operable.
value to application state, or use bind:this to call show(), hide() and toggle(). ontoggle reports the resulting state for header, binding and method changes. Collapsing
the panel preserves its controls' state.No state changes yet. Checkbox: unchecked.
summary snippet receives expanded and the show, hide and toggle helpers. Compose its layout
with QItemSection. Keep the summary non-interactive: the component supplies
the disclosure action.to or href, the title navigates while a separate trailing
button opens the panel. expandIconToggle gives a non-linked row the same
separate control. The event count below tracks only onExpandIconClick.Separate toggle activations: 0.
Matching thread and a backing board.
A needle, screwdriver and corner clamp.
Set toggleAriaLabel to identify the separate button; its default label
reflects the open state. Even with hideExpandIcon, separate buttons stay
visible so the panel remains operable.
Enter and Space toggle a focused whole-row header. Tab enters the list; arrow keys move
through its rows and separate actions. Use preserveTabOrder on the list if every
header should be a Tab stop. Collapsed panels keep their state, but their content is hidden
from assistive technology and keyboard navigation.
Keep selection off a list of expansion items: these are disclosures, not
listbox options. See QList for keyboard and layout options.