Edge Label Example not Working
Closed this issue · 1 comments
Hello, i've integrated grpah into my app successfully but i can't show edge labels correctly. Even basic code which is shared at below don't show the edge label. Where did i make mistake?
`
<v-network-graph
:nodes="nodes"
:edges="edges"
:layouts="layouts"
:configs="configs"
<template #edge-label="{ edge, ...slotProps }">
<v-edge-label :text="edge.label" align="center" vertical-align="above" v-bind="slotProps" />
</template>
after rendered config and area attributes couldnt populated automatically.
<v-edge-label data-v-05befdc2="" class="" text="ETH" edgeId="edge0" scale="1" config="[object Object]" area="[object Object]" align="center" test="1234" vertical-align="above"></v-edge-label>
I've found the problem,
forgot to define v-edge-label component in main vue export:
components: { "app-header": AppHeader, "app-footer": AppFooter, "app-theme-settings": AppThemeSettings, "v-network-graph": vNG.VNetworkGraph, "v-edge-label": vNG.VEdgeLabel },