Function: useEdgesData ​
â–¸ useEdgesData<EdgeType
>(edgeId
): ComputedRef
<EdgeData
<EdgeType
> | null
>
Composable for receiving data of one or multiple nodes
Type parameters ​
Name | Type |
---|---|
EdgeType | extends Edge = GraphEdge |
Parameters ​
Name | Type | Description |
---|---|---|
edgeId | MaybeRefOrGetter <string > | The id (or ids) of the node to get the data from |
Returns ​
ComputedRef
<EdgeData
<EdgeType
> | null
>
An array of data objects
â–¸ useEdgesData<EdgeType
>(edgeIds
): ComputedRef
<EdgeData
<EdgeType
>[]>
Type parameters ​
Name | Type |
---|---|
EdgeType | extends Edge = GraphEdge |
Parameters ​
Name | Type |
---|---|
edgeIds | MaybeRefOrGetter <string []> |
Returns ​
ComputedRef
<EdgeData
<EdgeType
>[]>
â–¸ useEdgesData<EdgeType
>(edgeIds
, guard
): ComputedRef
<EdgeData
<EdgeType
>[]>
Type parameters ​
Name | Type |
---|---|
EdgeType | extends Edge = GraphEdge |
Parameters ​
Name | Type |
---|---|
edgeIds | MaybeRefOrGetter <string []> |
guard | (node : Edge ) => node is EdgeType |
Returns ​
ComputedRef
<EdgeData
<EdgeType
>[]>