我正在使用jsTree。我想限制子節點的選擇爲4(要麼不允許用戶選擇多於4個節點,要麼禁用所有的複選框)。我正在使用選擇限制,這是行不通的。我怎樣才能做到這一點?限制在jstree中選擇子節點的數量
$("#mytree").jstree({
"plugins" : [ "themes","html_data", "ui", "crrm","checkbox" ],
"html_data" : {
// ...
},
"checkbox": {
"keep_selected_style": false
},
"ui": {
"select_limit": 4,
},
// ...
});
[jstree select \ _limit不能正常工作。我想設置選擇限制來選擇只有3個節點](http://stackoverflow.com/questions/14785236/jstree-select-limit-not-working-i-want-to-set-selection-limit-to-select -only-3) –
你檢查過了嗎? http://stackoverflow.com/questions/14785236/jstree-select-limit-not-working-i-want-to-set-selection-limit-to-select-only-3 –
是的,我試過這個。不工作 – Nagendra