「jQuery入門」jsTreeプラグインを使うサンプル

使用例
1.JSコード

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$('#jstreeCft').jstree({
plugins : [ "wholerow","checkbox" ],
checkbox :{
three_state : true,
keep_selected_style :false
},
core : {
multiple : true,
animation : 0
}
}).on('changed.jstree',function(e,data){
// some code
});
$('#jstreeCft').jstree({ plugins : [ "wholerow","checkbox" ], checkbox :{ three_state : true, keep_selected_style :false }, core : { multiple : true, animation : 0 } }).on('changed.jstree',function(e,data){ // some code });
$('#jstreeCft').jstree({
     plugins : [ "wholerow","checkbox" ],
       checkbox :{ 
         three_state : true,
         keep_selected_style :false
      },
      core : {
          multiple : true,
          animation : 0
      }
}).on('changed.jstree',function(e,data){
  // some code
});

2.htmlコード
<div id="jstreeCft"></div>

jQuery

Posted by arkgame