JavaScript È°¿ëÆÁ
2019.01.13 / 22:28
[jsTree] Context Menu
hanulbit
Ãßõ ¼ö 235
"plugins" : [ "themes", "xml_data", "ui","crrm","hotkeys","contextmenu"],
"contextmenu" : {
"items" : {
"create" : {
"separator_before" : false,
"separator_after" : true,
"label" : "Ãß°¡",
"action" : function (obj) { this.create(obj); }
},
"rename" : {
"separator_before" : false,
"separator_after" : true,
"label" : "À̸§º¯°æ",
"action" : function (obj) { this.rename(obj); }
},
"remove" : {
"separator_before" : false,
"separator_after" : true,
"label" : "»èÁ¦",
"action" : function (obj) { this.remove(obj); }
},
"ccp" : null
}
}
"contextmenu" : {
"items" : {
"create" : {
"separator_before" : false,
"separator_after" : true,
"label" : "Ãß°¡",
"action" : function (obj) { this.create(obj); }
},
"rename" : {
"separator_before" : false,
"separator_after" : true,
"label" : "À̸§º¯°æ",
"action" : function (obj) { this.rename(obj); }
},
"remove" : {
"separator_before" : false,
"separator_after" : true,
"label" : "»èÁ¦",
"action" : function (obj) { this.remove(obj); }
},
"ccp" : null
}
}
Ç÷¯±×Àο¡ contextmenu¶ó´Â°Ô µé¾î°¡¾ßµÇ°í
jstree ÀÚü¿¡¼ ÀÌÀü¿¡ Ŭ¸¯Çß´ø tree¿¡ ´ëÇÑ Á¤º¸¸¦ °®°í ÀÖ°íÀÚ Çϸé
cookie¸¦ plugin¿¡ Æ÷ÇÔ½ÃÅ°¸é µÈ´Ù.
selected ¿É¼ÇÀ¸·Î Æ˾÷â ¶ß°Ô Çسù´Âµ¥
ÀÌÀü¿¡ ºÃ´ø ³ëµå¸¦ ÀÚµ¿À¸·Î ¼±ÅÃÇؼ cookie¸¦ »©¹ö·È´Ù.