Tôi đang sử dụng plugin jstree để điền vào cây của tôi dựa trên tệp xml. Một số nút văn bản lớn hơn div vùng chứa. Có cách nào để văn bản gói văn bản nút jstree?văn bản lá gói trong jstree
$(document).ready(function(){
$("#tree").jstree({
"xml_data" : {
"ajax" : {
"url" : "jstree.xml"
},
"xsl" : "nest"
},
"themes" : {
"theme" : "classic",
"dots" : true,
"icons" : true
},
"search" : {
"case_insensitive" : true,
"ajax" : {
"url" : "jstree.xml"
}
},
"plugins" : ["themes", "xml_data", "ui","types", "search"]
}).bind("select_node.jstree", function (event, data) {
$("#tree").jstree("toggle_node", data.rslt.obj);
Cảm ơn Công việc tuyệt vời cho tôi –
Cảm ơn bạn rất nhiều! Nó hoạt động hoàn hảo cho tôi! – Tung