MCPcopy Index your code
hub / github.com/adobe/react-spectrum / toggleKey

Method toggleKey

packages/react-stately/src/tree/useTreeState.ts:44–44  ·  view source on GitHub ↗

Toggles the expanded state for an item by its key.

(key: Key)

Source from the content-addressed store, hash-verified

42
43 /** Toggles the expanded state for an item by its key. */
44 toggleKey(key: Key): void;
45
46 /** Replaces the set of expanded keys. */
47 setExpandedKeys(keys: Set<Key>): void;

Callers 12

useGridListItemFunction · 0.65
handleTreeExpansionKeysFunction · 0.65
useTableRowFunction · 0.65
toggleFunction · 0.65
useTreeItemFunction · 0.65
TreeItemFunction · 0.65
onExpandedChangeFunction · 0.65
TableInnerFunction · 0.65
TreeInnerFunction · 0.65
ExpandableRowChevronFunction · 0.65
DefaultSelectionTrackerFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected