Function: useNodesData ​
â–¸ useNodesData<NodeType
>(nodeId
): ComputedRef
<NodeData
<NodeType
> | null
>
Composable for receiving data of one or multiple nodes
Type parameters ​
Name | Type |
---|---|
NodeType | extends Node <any , any , string > = GraphNode <any , any , string > |
Parameters ​
Name | Type | Description |
---|---|---|
nodeId | MaybeRefOrGetter <string > | The id (or ids) of the node to get the data from |
Returns ​
ComputedRef
<NodeData
<NodeType
> | null
>
An array of data objects
â–¸ useNodesData<NodeType
>(nodeIds
): ComputedRef
<NodeData
<NodeType
>[]>
Type parameters ​
Name | Type |
---|---|
NodeType | extends Node <any , any , string > = GraphNode <any , any , string > |
Parameters ​
Name | Type |
---|---|
nodeIds | MaybeRefOrGetter <string []> |
Returns ​
ComputedRef
<NodeData
<NodeType
>[]>
â–¸ useNodesData<NodeType
>(nodeIds
, guard
): ComputedRef
<NodeData
<NodeType
>[]>
Type parameters ​
Name | Type |
---|---|
NodeType | extends Node <any , any , string > = GraphNode <any , any , string > |
Parameters ​
Name | Type |
---|---|
nodeIds | MaybeRefOrGetter <string []> |
guard | (node : Node <any , any , string >) => node is NodeType |
Returns ​
ComputedRef
<NodeData
<NodeType
>[]>