在 EXTJS 中建立 node.appendChild 時選擇並編輯
P粉321676640
P粉321676640 2024-04-03 17:39:46
0
1
407

我對 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學習者快速成長!