Skip to content

LeoFlandin/bootstrap-treeview

 
 

Repository files navigation

Bootstrap Tree View Leo's Patch


Original repo : /bootstrap-treeview

Usage

The object of this fork is to add the hability to dynamically render the text node by passing a function. The function is called with the node object.

Example

var tree = [
    {
    text: function(node){
      return new Date() + "Node #" + node.nodeId + " Business : " + node.myBusinessData; 
    },
    myBusinessData: "foobar"
];

The function is evaluated in each render process, including node click, node select, node collapse, etc.

Packages

No packages published

Languages

  • JavaScript 74.2%
  • HTML 22.2%
  • CSS 3.6%