PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/ext-4.1.0_b3/docs/extjs/examples/MVC/pandora/app/view/StationsList.js

https://bitbucket.org/srogerf/javascript
JavaScript | 36 lines | 32 code | 4 blank | 0 comment | 0 complexity | 2d65e0b39322f22c24acf339a9c52daa MD5 | raw file
 1Ext.define('Pandora.view.StationsList', {
 2    extend: 'Ext.grid.Panel',
 3    alias: 'widget.stationslist',
 4    
 5    store: 'Stations',
 6    title: 'Stations',
 7    hideHeaders: true,
 8    
 9    initComponent: function() {
10        this.columns = [{
11            dataIndex: 'name',
12            flex: 1
13        }];
14        
15        this.dockedItems = [{
16            dock: 'bottom',
17            xtype: 'toolbar',
18            items: [{
19                xtype: 'button',
20                text: 'Settings',
21                action: 'settings'
22            }, {
23                xtype: 'buttongroup',
24                items: [{
25                    text: 'By Date',
26                    action: 'filter-date'
27                }, {
28                    text: 'ABC',
29                    action: 'filter-name'
30                }]
31            }]
32        }];
33        
34        this.callParent();
35    }
36});