View Full Version : Changing Generated Class Names from My...
1 May 2010, 7:32 AM
How do I set the class names of the classes that are created in Designer? i do not like the components/classes all having generated names starting with "My". I have MyGrid, MyGrid1, MyGrid2, MyPanel, etc. I've search the properties for each component, and right-clicked the classname everywhere I see it, nowhere can I find how to give the class a meaningful name.
1 May 2010, 11:35 AM
For the top-level components, I think you want to look at the jsClass attribute. Setting this should change the name in the Components tree and change the name in the generated .js files.
The jsClass attribute is only available on the top-level components now. This is usually fine in the exported code because the other components are declared as items of the top one using xtype and so they don't explicitly extend a class. The name these things show up as in the Components tree in the Designer seems to be sensitive to the type of control. For example, the Form Fields take on the name attribute while grid panels that are children of a top-level container show as the title attribute.
1 May 2010, 2:33 PM
@brianpolk This screencast might help http://www.extjs.com/blog/2010/04/22/ext-designer-released-watch-the-screencast/
Powered by vBulletin® Version 4.1.5 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.