[b]多选树:CheckBoxTree[/b]
[img]http://www.miniui.com/docs/api/images/checkboxtree.gif[/img]
参考示例:[url=http://www.miniui.com/demo/tree/checkboxtree.html]多选树:CheckBoxTree[/url]
[b]创建代码[/b]
<ul id="tree2" class="mini-tree" url="../data/tree.txt" style="width:300px;"
showTreeIcon="true" textField="text" idField="id" showCheckBox="true"
onbeforenodecheck="onBeforeNodeCheck" checkRecursive="true" allowSelect="false" enableHotTrack="false">
</ul>
showCheckBox:显示树形的checkbox
checkRecursive:决定是否联动选择
[b]设置多选[/b]
tree.setValue("forms,button,lists");
[b]获取多选[/b]
var value = tree.getValue();
alert(value);
[img]http://www.miniui.com/docs/api/images/checkboxtree.gif[/img]
参考示例:[url=http://www.miniui.com/demo/tree/checkboxtree.html]多选树:CheckBoxTree[/url]
[b]创建代码[/b]
<ul id="tree2" class="mini-tree" url="../data/tree.txt" style="width:300px;"
showTreeIcon="true" textField="text" idField="id" showCheckBox="true"
onbeforenodecheck="onBeforeNodeCheck" checkRecursive="true" allowSelect="false" enableHotTrack="false">
</ul>
showCheckBox:显示树形的checkbox
checkRecursive:决定是否联动选择
[b]设置多选[/b]
tree.setValue("forms,button,lists");
[b]获取多选[/b]
var value = tree.getValue();
alert(value);