-
-
Save anonymous/3ff34b82522eb038c3f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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