-
31 Jan 2012 12:31 PM #1
Using custom classes
Using custom classes
Hi,
I have a toolbar with a text field and two buttons that I’ve made into a class in Designer. I’d like to use this class throughout my project. How does one reuse a class?
-thanks,
Hugo.
-
31 Jan 2012 1:49 PM #2
If the toolbar is already a top level class you just need to drag that toolbar into the component you want to use it in.
You will then be prompted with a link, copy and move dialog. You will want to choose link.
If your toolbar is not yet a top level class, you can right click on it and choose promote to class. You can then link that toolbar to as many other places you would like.Aaron Conran
@aconran
Sencha Architect Development Team
-
1 Feb 2012 4:44 AM #3
Thanks for the reply. That’s exactly what I was trying to do, I created a toolbar in a grid, promoted it to a class and dragged the promoted class into another grid. However, when I looked in the generated code, I noticed the toolbar was added as an item instead of a docked item, a docked toolbar was my intent. I ended up starting over, creating the toolbar in a grid, promoting the toolbar and dragging the original toolbar into my other grids. That seemed to reuse the custom toolbar class.
-thanks,
Hugo
-
1 Feb 2012 7:56 AM #4
Hugo -
I'm not sure of the original workflow you used and whether or not there was a bug there.
If you are able to reproduce something that you think is acting improperly, please let us know.Aaron Conran
@aconran
Sencha Architect Development Team
-
24 Feb 2013 2:08 AM #5
I reckon I have something similar going on, thread below:
http://www.sencha.com/forum/showthre...omething-wrong


Reply With Quote