ExtJS-メニュー

4153 ワード

C:\Users\MS.Kim\eclipse-workspace\eta\app\store\NavigationTree.js
Ext.define('Admin.store.NavigationTree', {
    extend: 'Ext.data.TreeStore',

    storeId: 'NavigationTree',

    fields: [{
        name: 'text'
    }],

    root: {
        expanded: true,
        children: [
            {
                text: 'Dashboard',
                iconCls: 'x-fa fa-desktop',
                rowCls: 'nav-tree-badge nav-tree-badge-new',
                viewType: 'admindashboard',
                routeId: 'dashboard', // routeId defaults to viewType
                leaf: true
            },

            {
                text: 'Search results',
                iconCls: 'x-fa fa-search',
                viewType: 'searchresults',
                leaf: true
            },

            {
                text: 'Charts',
                iconCls: 'x-fa fa-chart-pie',
                viewType: 'charts',
                leaf: true
            }
        ]
    }
});