View Full Version : 'ref' config option can't be edited
28 Mar 2010, 2:29 PM
'ref' config option can't be edited, which would be really useful for event handling.
whats the best way of event handling with ext designer?
29 Mar 2010, 8:26 AM
I wouldn't think you'd want to set them up on the base class but in the configuration when you implement them.
29 Mar 2010, 8:35 AM
I wanted to set them up, so I could easily refer to the sub-components within the base class. This way I can set up event handling in the main class.
Could you please give me a good example of event handling in a class that's base class was designed by Ext Designer?
29 Mar 2010, 8:44 AM
We will have this in an upcoming release: http://www.extjs.com/forum/showthread.php?t=95598
29 Mar 2010, 9:23 AM
I agree. It would be nice to see some best practices or tutorial videos about Ext Designer. Can't wait to get some help :)
29 Mar 2010, 2:48 PM
We're doing a lot of work in the ref area and will come out with recommendations with it when finalized.
30 Mar 2010, 1:59 AM
Thanks for info. Dreaming of 'auto-ref'... I-|
'autoRef' has been implemented for xds-220.127.116.11. Any component which is put in a Container will get the Designer configuration autoRef. The autoRef is a plain string without worries of using "../../" etc
autoRef will generate a correct ref path to place your ref configuration on the top level component.
For example if you have a Button within a ButtonGroup within a ToolBar within a Panel, typically you would have to manually calculate the number of "../"'s that you need to place it on the top level class. (For example '../../myBtn').
We would use the autoRef configuration 'myBtn'.
autoRef allows you to add or remove additional levels of nesting within your hierarchy with ease and while calculating the correct ref configuration.
30 Mar 2010, 4:48 AM
thank you guys. can't wait to see 18.104.22.168 ...
Powered by vBulletin® Version 4.1.5 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.