Answered: How can components be re-used in different views?
Answered: How can components be re-used in different views?
I am building an application that has two navigation views. I would like to use the same floating panel and navigation bar objects in both views. What is the best approach to take, so that I do not write redundant code?
Each navigation view will create it's own navigation bar which is fine. For the floating panel, you just need to cache a reference where you can reference it like on the app's namespace
Each navigation view will create it's own navigation bar which is fine. For the floating panel, you just need to cache a reference where you can reference it like on the app's namespace
Yes, I see what you mean, thank you. I replicate the navbar on each navigation view, and add the same panel by xtype. A function in my controller toggles it on/off.