Skip to content

Instantly share code, notes, and snippets.

@agborkowski
Created February 21, 2012 22:18
Show Gist options
  • Save agborkowski/1879411 to your computer and use it in GitHub Desktop.
Save agborkowski/1879411 to your computer and use it in GitHub Desktop.
form buttons
Ext.define('APP.view.classificationIndicators.Edit', {
extend: 'Ext.window.Window',
//...
initComponent: function() {
var me = this;
Ext.applyIf(me, {
buttons: [{
text: 'Cancel',
scope: this,
handler: this.close
},{
text: 'Submit',
id: '#classificationindicatorsEditSubmit',
cls: 'app-btn-submit',
iconCls: 'ico-menu-add',
action: 'submit'
}],
items: [{
xtype: 'form'
//...
}]
})
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment