Skip to content

GhostTreeTrigger reference ​

Package: @ghostvue/vue. Status: experimental (stability policy).

Non-focusable row or disclosure target (default <span>, no role or tabindex) inside GhostTreeItem, so the tree has no nested interactive controls. action="both" selects and toggles (with expandOnClick), "toggle" only toggles expansion, "select" only selects. Non-toggle triggers label the item through aria-labelledby; focus() delegates to the owning item.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
actionGhostTreeTriggerAction"both"NoPointer click behavior: select and toggle, toggle only, or select only.
asGhostTreeTriggerElement"span"NoTag name or component for the non-focusable row or disclosure target.
disabledbooleanfalseNoLocal disable flag, combined with the item and root `disabled`.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultVisible label and decorative (aria-hidden) affordances such as a chevron.

Slot props: default ​

NameTypeDescription
disabledbooleanSlot prop `disabled`.
expandablebooleanSlot prop `expandable`.
expandedbooleanSlot prop `expanded`.
levelnumberSlot prop `level`.
select() => voidSlot prop `select`.
selectedbooleanSlot prop `selected`.
toggle() => voidSlot prop `toggle`.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullExposed property `element`.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-parttriggerRow or disclosure target rendered by GhostTreeTrigger.
data-stateopenOwning branch is expanded.
data-stateclosedOwning branch is collapsed.
data-statecheckedOwning leaf item is selected.
data-selectedpresentPresent while the owning item is selected.
data-disabledpresentPresent when the trigger, its item, or the tree is disabled.

CSS variables ​

None declared.

Accessibility ​

Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/treeview/.

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
EnterHandled by the owning treeitem; the trigger itself is never focused.Not reviewed

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

None declared.