Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TreeItemExpansion

Hierarchy

Index

Properties

expandedIds: ExpandedIds

The list of expanded ids within the tree. These ids should reference itemIds for tree items.

onMultiItemExpansion: Dispatch<SetStateAction<ExpandedIds>>

A function to call when the user presses the asterisk key (*) that will expand all tree items at the same level as the currently focused item.

remarks

@since 4.0.1 Allows for callback behavior to get current expandedIds.

Methods

  • onItemExpansion(itemId: string, expanded: boolean): void
  • A function to call that will update the expandedIds to collapse or expand a clicked item.

    Parameters

    • itemId: string
    • expanded: boolean

    Returns void

Generated using TypeDoc