In the app I am working on I have a combo box that displays a list of all of our trucks for the user to select from. It is attached to a store/model that auto loads from the server. I know I will need the same functionality in many different apps. I have imported the model into Architect so it is fairly easy to add to a new app and then defining a store and combo box to use the model.
My question is whether this is the right approach or whether there is a way that I can create a custom combo box (that already knows how to get the data using a store/model). Then I can just add to a new app I just add the custom combo box and I am done. Of course I will have to add the code to respond to events as that is unique to each app.
If I can create a custom combo box can anyone point me in the right direction. I don't mind researching the details and figuring it out but would like to know that it is possible before I spend too much time trying to make it work. Looking at some of the guides I am not sure if I can do this by 'Extending a Component' or if I need to create a new class or something else.
Any thoughts are appreciated.
Thanks,
Scott
My question is whether this is the right approach or whether there is a way that I can create a custom combo box (that already knows how to get the data using a store/model). Then I can just add to a new app I just add the custom combo box and I am done. Of course I will have to add the code to respond to events as that is unique to each app.
If I can create a custom combo box can anyone point me in the right direction. I don't mind researching the details and figuring it out but would like to know that it is possible before I spend too much time trying to make it work. Looking at some of the guides I am not sure if I can do this by 'Extending a Component' or if I need to create a new class or something else.
Any thoughts are appreciated.
Thanks,
Scott
Comment