我对 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(),
}, Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
检查这个小提琴,它有单击和双击编辑的选项 动态树单元编辑器