PDA

View Full Version : [CLOSED] xds-1.0.2.5: Omission of the option "jsClass" in the Container widget?



peutetrepas
15 Jul 2010, 6:02 AM
Hello,

there is no possibility to change the name of a Container widget in the Component Config grid.

Is it intentioned?


ps: Screenshot at: http://misc.42loops.com/1mZXet

Best regards,

jarrednicholls
15 Jul 2010, 9:57 AM
Hi Paul-André,

Actually, you do not see the jsClass option because the Container is not a "top-level" or "root" component in the Component Tree. Only root components are exported as Javascript classes with .ui.js and .js files...therefore, only the root components can have a jsClass specified (it wouldn't have any meaning or any effect on child components).

With that said, if you want your Container to be an exportable class, yet still have an instance remain under your "MasterPanel", then you can right-click on the Container and choose "Promote to Class". This is a newer feature that will make your Container a root component, and thus be its own exported Javascript class with its own "xtype". A "linked instance" of the Container will take its place under your "MasterPanel". Save a backup of your project first and then give the Promote to Class feature a try, it may be what you're looking for.

Hope that helps.

peutetrepas
15 Jul 2010, 11:43 AM
Thanks Jarred,

the "Promote to Class" feature did it!