MCPcopy Create free account
hub / github.com/adobe/react-spectrum / insert

Method insert

packages/react-stately/src/data/useTreeData.ts:62–62  ·  view source on GitHub ↗

* Inserts an item into a parent node as a child. * * @param parentKey - The key of the parent item to insert into. `null` for the root. * @param index - The index within the parent to insert into. * @param value - The value to insert.

(parentKey: Key | null, index: number, ...values: T[])

Source from the content-addressed store, hash-verified

60 * @param value - The value to insert.
61 */
62 insert(parentKey: Key | null, index: number, ...values: T[]): void;
63
64 /**
65 * Inserts items into the list before the item at the given key.

Callers 4

insertBeforeFunction · 0.65
insertAfterFunction · 0.65
prependFunction · 0.65
appendFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected