OLM TreeIndented

How to

            
// Creates a sample framework randomly scored. This should be replaced with some framework retrieving function. 
let framework = OLM.CORE.Utils.getScoredFrameworkSample();
// Creates a tree based on the framework.
let fw_tree = new OLM.CORE.FrameworkTree();
fw_tree.buildFromFramework(framework);
// Creates the treeIndented object. The config is editable on the right =>  
let treeIndented  = new OLM.treeIndented(document.getElementById('test'), fw_tree, config);
treeIndented.onClick = (node) => {
  // Your click behavior here. In the exemple below, we just pompt the node in the console.
}
// We chose an id for the svg element. Default behavior automatically creates a unique id.
treeIndented.draw(svgId = 'test-pack');
            
          

                
Example