Expand и useArrows не работают для Treepanel - PullRequest
0 голосов
/ 24 мая 2018

Я использую приведенный ниже код treepanel в моем проекте, но expnad не выполняется. useArrow также не работает.Но когда я запускаю один и тот же код в Fidller, все работает как положено.Может ли кто-нибудь помочь мне выяснить, что мне не хватает.

Расширение не происходит.Все значения, включая отображение дочерних элементов.Вот мой код

{
    xtype: 'treepanel',
    useArrows: true,
    autoScroll: false,
    animate: true,
    enableDD: false,
    title: 'Configuration',
    width: 200,
    height: 400,
    rootVisible: false,
    store: Ext.create('Ext.data.TreeStore', {
        root: {
            expanded: true,
            children: [{
                text: "Configure Application",
                expanded: true,
                children: [{
                    text: "Manage Application",
                    leaf: true
                }, {
                    text: "Scenario",
                    leaf: true
                }]
            }, {
                text: "User Configuration",
                expanded: true,
                children: [{
                    text: "Manage User",
                    leaf: true
                }, {
                    text: "User rights",
                    leaf: true
                }]
            }, {
                text: "Test Configuration",
                //leaf: true,
                expanded: true,
                children: [{
                    text: "Manage User",
                    leaf: true
                }, {
                    text: "User rights",
                    leaf: true
                }]
            }]
        }
    }),
    listeners: {
        itemclick: function(s, r) {
            alert(r.data.text);
        }
    }
}

Спасибо за помощь.

...