@@ -755,6 +755,55 @@ <h1>Dark Style <small>(Basic style, default configuration)</small></h1>
755755 </ script >
756756</ section >
757757
758+ < section id ="boot " ng-controller ="Boot ">
759+ < div class ="page-header ">
760+ < h1 > Bootstrap Style < small > (Basic style, default configuration)</ small > </ h1 >
761+ </ div >
762+ < div class ="row ">
763+ < div class ="col-md-6 show-grid ">
764+ < div class ="panel panel-default ">
765+ < div class ="panel-body " style ="background-color: #f5f5f5; ">
766+ < div class ="example-caption "> EXAMPLE:</ div >
767+ < div save-content ="boot-html ">
768+ <!-- Note that the tree does not set the background color. We inject it from the wrapper div. -->
769+ < div style ="background-color: #f5f5f5; ">
770+ < treecontrol class ="tree-boot "
771+ tree-model ="treedata "
772+ on-selection ="showSelected(node) ">
773+ label: {{node.label}} ({{node.id}})
774+ </ treecontrol >
775+ </ div >
776+ </ div >
777+ </ div >
778+ </ div >
779+ </ div >
780+ < div class ="col-md-6 ">
781+ < p > Bootstrap style of the tree control, set using the class < code > tree-boot</ code > . The style does not include the background color, instead,
782+ inject your own background color using a wrapper div element.</ p >
783+ < p > Click on the folder icons to open and close the tree nodes. Click on the node label to select a node in the tree.</ p >
784+ < p > Selected node: < code > {{selectedNode?selectedNode.label:"N/A"}}</ code > </ p >
785+ </ div >
786+ </ div >
787+ < div class ="row ">
788+ < tabset >
789+ < tab heading ="Markup " >
790+ < pre class ="code " apply-content ="boot-html " highlight-lang ="html "> </ pre >
791+ </ tab >
792+ < tab heading ="JavaScript ">
793+ < pre class ="code " apply-content ="boot-js " highlight-lang ="js "> </ pre >
794+ </ tab >
795+ </ tabset >
796+ </ div >
797+ < script save-content ="boot-js ">
798+ function Boot ( $scope ) {
799+ $scope . treedata = createSubTree ( 3 , 4 , "" ) ;
800+ $scope . showSelected = function ( sel ) {
801+ $scope . selectedNode = sel ;
802+ } ;
803+ }
804+ </ script >
805+ </ section >
806+
758807< section id ="file-style " ng-controller ="FileStyle ">
759808 < div class ="page-header ">
760809 < h1 > File Style using Tree Label Templates < small > (Basic style, default configuration)</ small > </ h1 >
0 commit comments