-
24 May 2012 2:58 PM #1
config property is not applied
config property is not applied
Hi,
I have this code:
The code is splitted in the right directory, the window is displayed but the title is not set. It gets set only if i putCode:Ext.define('app.component.window.D3', { extend: 'app.component.window.Window', config:{ title:'D3 window' } }); Ext.application({ name: 'appt', appFolder:'app', launch: function() { var win = Ext.create('app.component.window.D3', { layout: 'fit' }); win.show(); } });
after win.show(). Why is there this behaviour? I was thinking that It was setting a default value using config.Code:win.getTitle();
Thanks
-
24 May 2012 11:17 PM #2
Class configs should not coincide with optional configs specified in config object, and the ones like "title" have by default accessor methods
My blog: http://vadimpopa.com
-
25 May 2012 3:03 PM #3
If it's so why in the examples they use title in config?
Look at http://dev.sencha.com/deploy/ext-4.1...e/class_system 2. Configuration section
-
25 May 2012 11:47 PM #4
, they define there a class, they don't extend a extjs window class like you do.My blog: http://vadimpopa.com
-
1 Jun 2012 12:11 AM #5
if you need to do that, then..... go and study extjs documentation
My blog: http://vadimpopa.com


Reply With Quote