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

Method move

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

* Moves an item within the list. * * @param key - The key of the item to move. * @param toIndex - The index to move the item to.

(key: Key, toIndex: number)

Source from the content-addressed store, hash-verified

113 * @param toIndex - The index to move the item to.
114 */
115 move(key: Key, toIndex: number): void;
116
117 /**
118 * Moves one or more items before a given key.

Callers 5

onMoveFunction · 0.65
makeOnMoveFunction · 0.65
onMoveFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected