SongControls.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Ext.define('Pandora.view.SongControls', {
  2. extend: 'Ext.Container',
  3. alias: 'widget.songcontrols',
  4. height: 70,
  5. initComponent: function() {
  6. this.layout = {
  7. type: 'vbox',
  8. align: 'center',
  9. pack: 'center'
  10. };
  11. this.items = [{
  12. xtype: 'container',
  13. defaultType: 'button',
  14. height: 30,
  15. width: 300,
  16. layout: {
  17. type: 'hbox',
  18. align: 'center',
  19. pack: 'center'
  20. },
  21. items: [{
  22. text: 'Vote Down',
  23. action: 'vote-down'
  24. }, {
  25. text: 'Vote Up',
  26. action: 'vote-up'
  27. }, {
  28. text: 'Pause',
  29. action: 'pause'
  30. }, {
  31. text: 'Skip',
  32. action: 'skip'
  33. }]
  34. }, {
  35. width: 300,
  36. xtype: 'container',
  37. layout: {
  38. type: 'hbox',
  39. align: 'center'
  40. },
  41. items: [{
  42. xtype: 'component',
  43. html: '2:00'
  44. }, {
  45. xtype: 'progressbar',
  46. value: 0.5,
  47. flex: 1
  48. }, {
  49. xtype: 'component',
  50. html: '4:00'
  51. }]
  52. }];
  53. this.callParent();
  54. }
  55. });