Skip to content

Instantly share code, notes, and snippets.

@moduscreate
Created July 4, 2012 19:06
Show Gist options
  • Select an option

  • Save moduscreate/3048977 to your computer and use it in GitHub Desktop.

Select an option

Save moduscreate/3048977 to your computer and use it in GitHub Desktop.
Ext.define('AW.view.Article', {
extend : 'Ext.Sheet',
xtype : 'article',
config : {
article : null,
baseCls : '',
stretchX : true,
...
control : {
'[text=Back]' : {
tap : 'onCloseBtn'
},
'[action=mywire]' : {
tap : 'onMyWireBtn'
},
'[action=save]' : {
tap : 'onSaveBtn'
}
}
},
initialize : function() {
var me = this;
me.setItems([
me.buildTopToolbar(),
me.buildArticleBody(),
me.buildSidebar()
]);
me.callParent();
me.tagsContainer = me.down('#tags');
me.updateBody(this.getArticle());
me.hookEvents();
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment