liquor-tree icon indicating copy to clipboard operation
liquor-tree copied to clipboard

Extra fields to return on selected

Open bajki opened this issue 3 years ago • 1 comments

Hi, how to get more info from selected node.

If i pass data: [{ id: 1 isBatch: false, text:"Example", description:"Example description " }] is there any way to get description field on selected node?

Thanks

bajki avatar Nov 25 '20 11:11 bajki

Pass in your data like this and then you should be able to reference it using node.data.description

[{
    id: 1
    isBatch: false,
    text: "Example",
    data: {
        description: "Example description"
    }
}]

Bubalubs avatar Jan 06 '21 08:01 Bubalubs