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

Method insert

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

* Inserts items into the list at the given index. * * @param index - The index to insert into. * @param values - The values to insert.

(index: number, ...values: T[])

Source from the content-addressed store, hash-verified

62 * @param values - The values to insert.
63 */
64 insert(index: number, ...values: T[]): void;
65
66 /**
67 * Inserts items into the list before the item at the given key.

Callers 8

insertItemFunction · 0.65
onItemDropFunction · 0.65
onRootDropFunction · 0.65
onItemDropFunction · 0.65
onRootDropFunction · 0.65

Calls

no outgoing calls

Tested by 1

insertItemFunction · 0.52