/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

  1. Ext.define('Pandora.view.StationsList', {
  2. extend: 'Ext.grid.Panel',
  3. alias: 'widget.stationslist',
  4. store: 'Stations',
  5. title: 'Stations',
  6. hideHeaders: true,
  7. initComponent: function() {
  8. this.columns = [{
  9. dataIndex: 'name',
  10. flex: 1
  11. }];
  12. this.dockedItems = [{
  13. dock: 'bottom',
  14. xtype: 'toolbar',
  15. items: [{
  16. xtype: 'button',
  17. text: 'Settings',
  18. action: 'settings'
  19. }, {
  20. xtype: 'buttongroup',
  21. items: [{
  22. text: 'By Date',
  23. action: 'filter-date'
  24. }, {
  25. text: 'ABC',
  26. action: 'filter-name'
  27. }]
  28. }]
  29. }];
  30. this.callParent();
  31. }
  32. });