jstree 1.0カスタム右クリックメニュー(回転)
1278 ワード
$( function () {
$("#demo1" ).jstree({
"plugins" : [ "themes" , "html_data" , "contextmenu" ],
"contextmenu" : {
"items" : {
"create" : null ,
"rename" : null ,
"remove" : null ,
"ccp" : null ,
" " : {
"label" : " " ,
"action" : function (obj) { alert(obj) }
},
" " : {
"label" : " " ,
"submenu" : {
"cut" : {
"separator_before" : false ,
"separator_after" : false ,
"label" : "Cut" ,
"action" : function (obj) { alert( "Cut" ) }
}
}
}
}
}
});
});