Changing Generated Class Names from My...
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.
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.
Tags for this Thread