Skip to content

Instantly share code, notes, and snippets.

Created August 16, 2013 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3ff34b82522eb038c3f6 to your computer and use it in GitHub Desktop.
Save anonymous/3ff34b82522eb038c3f6 to your computer and use it in GitHub Desktop.
Ext.define('commenttest.component.CommentTestPanel', {
extend : 'Ext.form.Panel',
title : 'Editor',
layout : 'column',
width : 1000,
activeTab : 0,
requires : ['commenttest.component.htmleditors'],
alias : 'widget.commentTestPanel',
initComponent: function() {
this.items = [{
xtype : 'tabpanel',
id : 'myTPanel',
items : [{
xtype : 'htmleditors',
width : 1000
}]
}];
this.callParent(arguments);
}
});
Ext.define('commenttest.view.Viewport', {
extend: 'Ext.container.Container',
id: 'viewport',
requires:['commenttest.component.CommentTestPanel'],
items: [{
xtype : 'commentTestPanel'
}],
renderTo: 'wb-content',
initComponent: function() {
this.callParent(arguments);
}
});
Ext.define('commenttest.controller.commenttestController', {
extend:'Ext.app.Controller',
init: function() {
console.log('in Test Controller');
var me = this;
this.control({
'commentTestPanel':{
afterrender: this.onEditorRender
}
});
},
onEditorRender: function() {
console.log('it reads me');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment