jQuery MiniUI

 找回密码
 立即注册
查看: 660|回复: 1

CheckBoxTree树形控件刷新事件要怎么写 [复制链接]

Rank: 2

发表于 2022-2-11 11:15:50 |显示全部楼层
本帖最后由 hyling 于 2022-2-11 11:24 编辑

CheckBoxTree树形控件刷新事件要怎么写

<input type="button" value="刷新节点" on click ="refresh()"/>
    <ul id="tree2" class="mini-tree" url="../data/listTree.txt" style="width:200px;padding:5px;"
        showTreeIcon="true" textField="text" idField="id" parentField="pid" resultAsTree="false"  
        showCheckBox="true" checkRecursive="true"
        allowSelect="false" enableHotTrack="false" >




function refresh() {
        var tree = mini.get("tree2");         
            tree.load("../data/listTree.txt");
    }




Rank: 8Rank: 8

发表于 2022-2-11 14:17:19 |显示全部楼层

tree.reload();

Archiver|普加软件

GMT+8, 2022-6-28 13:50 , Processed in 0.027270 second(s), 10 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部