-
9 Apr 2012 9:11 AM #11
ok i believe i've found the issue.
i have to define the itemId only when calling the component not when i'm creating it.
meaning:
and thenCode:Ext.define('PrimaveraWebUI.view.EditorCabecDoc', { extend: 'Ext.form.Panel', alias: 'widget.editorcabecdoc', config: { items: [], listeners: [ { fn: 'onCabecDocActivate', event: 'activate' } ] }, onCabecDocActivate: function(container, newActiveItem, oldActiveItem, options) { console.debug('nice'); } });
does that make sense?Code:... { xtype: 'editorcabecdoc', itemId: 'CabecDoc', title: 'CabeƧalho' }, { xtype: 'editorlinhasdoc', itemId: 'LinhasDoc', title: 'Linhas' } ...
-
9 Apr 2012 9:31 AM #12Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Your code will look for any child items with the itemId of 'test' but you have no child items with an itemId of 'test'. Your tab panel does but not any child items.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
9 Apr 2012 9:32 AM #13
ic...noob problem
thank you for your time mate
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote