jQuery MiniUI

标题: CheckBox TreeGrid父节点隐藏 [打印本页]

作者: 陈敏敏    时间: 2015-6-9 12:40:27     标题: CheckBox TreeGrid父节点隐藏

使用CheckBox TreeGrid。如果父节点没有对应的子节点,如何能让页面的父节点内容隐藏

作者: dforce    时间: 2015-6-9 13:02:06

可以用过滤方法
tree.filter(function (node) {
                    if (.....) {
                        return true;
                    }
                });
作者: 陈敏敏    时间: 2015-6-9 13:09:57

dforce 发表于 2015-6-9 13:02
可以用过滤方法
tree.filter(function (node) {
                    if (.....) {

有例子吗
作者: dforce    时间: 2015-6-9 14:17:42

陈敏敏 发表于 2015-6-9 13:09
有例子吗

这有什么例子
你要过滤什么节点,自己加判断条件过滤一下




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2