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

Method move

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

* Moves an item within the tree. * * @param key - The key of the item to move. * @param toParentKey - The key of the new parent to insert into. `null` for the root. * @param index - The index within the new parent to insert at.

(key: Key, toParentKey: Key | null, index: number)

Source from the content-addressed store, hash-verified

114 * @param index - The index within the new parent to insert at.
115 */
116 move(key: Key, toParentKey: Key | null, index: number): void;
117
118 /**
119 * Moves one or more items before a given key.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected