-
1 Jan 2013 7:54 AM #1
Answered: Custom View Not Loading
Answered: Custom View Not Loading
I have several views which are working and are all being loaded in my app.js file. When I try and include this particular view to be loaded in my app.js file I get this message:
[WARN][Anonymous] [Ext.Loader] Synchronously loading 'MyNameSpace.view.Screen'; consider adding 'MyNameSpace.view.Screen' explicitly as a require of the corresponding class
Here is the code for the view:
Here is the code in app.js:Code:Ext.create('MyNameSpace.view.Screen', { extend: 'Ext.field.TextArea', config: { cls: 'screen' } });
Code:requires: [ 'Ext.MessageBox', 'Ext.field.TextArea' ], controllers: ['Main'], views: ['View1', 'View2', 'Screen'],
The views View1 and View2 are loading fine, I'm not sure why Screen is not.
-
Best Answer Posted by AndreaCammarata
Well...you are trying to include a view which extend a form field...
Let your Screen View extend an "Ext.Container" instead of an "Ext.field.TextArea".
-
2 Jan 2013 5:14 AM #2
Well...you are trying to include a view which extend a form field...
Let your Screen View extend an "Ext.Container" instead of an "Ext.field.TextArea".Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
2 Jan 2013 8:38 AM #3
-
2 Jan 2013 9:41 AM #4
Yes it is...but a text field is not a view.
Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata


Reply With Quote