0 votes
25 views
in Coach Views by (13.5k points)

1 Answer

0 votes
by (13.5k points)
selected by
 
Best answer

Bootstrap Treeview using Jquery is a js library the following control has been built using that, it expects a JSON in a certain format 

var myTree = [
    {
      text: "Item 1",
      nodes: [
        {
          text: "Item 1-1",
          nodes: [
            {
              text: "Item 1-1-1"
            },
            {
              text: "Item 1-1-2"
            }
          ]
        },
        {
          text: "Item 1-2"
        }
      ]
    },
    {
      text: "Item 2"
    },
    {
      text: "Item 3"
    }
    ...
];
There are configuration options like fontSize, fontColor, backgroundColor, width, initially Expanded to Level, on selection it has a event handler defined and also a config option is updated with the selected row text so that you can do necessary processing after that e.g. firing a boundary event or other actions.

It is now part of Dosvak UI Toolkit and latest version can be downloaded from Dosvak Gitlab

Related questions

0 votes
1 answer 239 views
+1 vote
0 answers 45 views
0 votes
1 answer 83 views
0 votes
0 answers 62 views
0 votes
0 answers 24 views
0 votes
0 answers 36 views
0 votes
0 answers 288 views
0 votes
0 answers 19 views
...