扩大dynatree一个节点的父节点 [英] expand the parents of a node in dynatree

查看:466
本文介绍了扩大dynatree一个节点的父节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要找出所有的家长基于给定节点上dynatree和扩大的父母。

I want to find out all the parents in dynatree based on a given node and expand the parents.

function Expand(node){
  $(".dynatree-node").each(function(){
        if($(this).text() == node){
            node.visitParents( function (node) {
                   node.toggleExpand();
                },true); 
        }
    });
}

我究竟做错了什么?如何进行?

What am i doing wrong?How to proceed?

推荐答案

node.makeVisible()将扩大家长

这篇关于扩大dynatree一个节点的父节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆