grunt-sencha-dependencies
Version:
A Grunt.js plugin which will figure out the order of Ext classes your Ext.application uses so the list can be passed on to further commands like concat, jshint, etc
58 lines (55 loc) • 1.43 kB
JavaScript
Ext.define('Pandora.view.SongControls', {
extend: 'Ext.Container',
alias: 'widget.songcontrols',
height: 70,
initComponent: function() {
this.layout = {
type: 'vbox',
align: 'center',
pack: 'center'
};
this.items = [{
xtype: 'container',
defaultType: 'button',
height: 30,
width: 300,
layout: {
type: 'hbox',
align: 'center',
pack: 'center'
},
items: [{
text: 'Vote Down',
action: 'vote-down'
}, {
text: 'Vote Up',
action: 'vote-up'
}, {
text: 'Pause',
action: 'pause'
}, {
text: 'Skip',
action: 'skip'
}]
}, {
width: 300,
xtype: 'container',
layout: {
type: 'hbox',
align: 'center'
},
items: [{
xtype: 'component',
html: '2:00'
}, {
xtype: 'progressbar',
value: 0.5,
flex: 1
}, {
xtype: 'component',
html: '4:00'
}]
}];
this.callParent();
}
});