在 EXTJS 中创建 node.appendChild 时选择并编辑
P粉321676640
P粉321676640 2024-04-03 17:39:46
0
1
409

我对 Extjs 非常陌生,我目前正在使用一棵树,我可以在其中创建一个分支,然后创建部分。我需要有关代码编辑功能的帮助。

createSection:函数(按钮){ var node = Button.up('menu').node;

if (node.data.leaf) {
        return false;
    }

    node.expand();

    var newSection = node.appendChild({
        name: 'New section ' + "(" + (node.childNodes.length +1) + ")" ,
        type: 'toc-by-system',
        leaf: false,
        id: uuid['v4'](),
        children: [],
        editor: {
            xtype: 'textfield'
        }
    });

    newSection.BeginEdit(),
},

P粉321676640
P粉321676640

全部回复(1)
P粉614840363

检查这个小提琴,它有单击和双击编辑的选项 动态树单元编辑器

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!