Skip to content

Commit 9499ca8

Browse files
committed
Add addChild function and update add documentation
1 parent efb5a78 commit 9499ca8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ The composable returns an object with the following properties:
6060
nodes: ComputedRef<Record<string, unknown>[]>;
6161
// Reactive object with unique IDs as keys
6262
nodesMap: ComputedRef<{[id: string]: Record<string, unknown>;}>;
63-
// Service function to add an empty object to the tree
63+
// Service function to add an empty object to the siblings
6464
add: (pId: string) => string | undefined;
65+
// Service function to add an empty object to the children
66+
addChild: (pId: string) => string | undefined;
6567
// Service function to remove an object from the tree
6668
remove: (pId: string) => string | undefined;
6769
// Service function to move an object down by one position

0 commit comments

Comments
 (0)