/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
- Ext.define('Pandora.view.StationsList', {
- extend: 'Ext.grid.Panel',
- alias: 'widget.stationslist',
-
- store: 'Stations',
- title: 'Stations',
- hideHeaders: true,
-
- initComponent: function() {
- this.columns = [{
- dataIndex: 'name',
- flex: 1
- }];
-
- this.dockedItems = [{
- dock: 'bottom',
- xtype: 'toolbar',
- items: [{
- xtype: 'button',
- text: 'Settings',
- action: 'settings'
- }, {
- xtype: 'buttongroup',
- items: [{
- text: 'By Date',
- action: 'filter-date'
- }, {
- text: 'ABC',
- action: 'filter-name'
- }]
- }]
- }];
-
- this.callParent();
- }
- });