jsTreeを使用しています。子ノードの選択を4に制限したい(4つ以上のノードを選択したり、すべてのチェックボックスを無効にすることはできない)。私は働いていない選択限界を使用しています。どうすればこれを達成できますか?私はちょうどこのに自分自身を走ったjstree内の子ノードの選択数を制限する
var children = document.getElementById("mytree").children;
var limit = 4;
for (var i = 0; i < limit; ++i)
{
if (!children[i]) return;
children[i].classList.add("off");
}
[jstree select \ _limit not working]が重複している可能性があります。私は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