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

Method append

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

* Appends 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 value - The value to insert.

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

Source from the content-addressed store, hash-verified

84 * @param value - The value to insert.
85 */
86 append(parentKey: Key | null, ...values: T[]): void;
87
88 /**
89 * Prepends an item into a parent node as a child.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected