Undefined webix tree table when trying to load array of JSON

170 Views Asked by At
var tree = webix.ui({
  view: "tree",
  url: "my_python_func()"
});

I am using this and my data is coming from a python file (i mean url:"my_python_func()").

The python func is returning an array of JSON. When I use that in the tree, it shows the value as undefined. Can someone help me how to fix this?

1

There are 1 best solutions below

0
Eldos Narbay On

you can get json array using ajax, and assign it to js object. And instead of writing
url: "my_python_func()", you can just type data: jsobject