I am implementing a mobile application using the Dojo Toolkit. The application has several pages and all pages have the same TabBar. At the moment, the TabBar is hardcoded in every page. So if want to make changes, I need to change the TabBar in every page. How can I solve this problem with the Dojo Toolkit?
I am implementing a mobile application using the Dojo Toolkit. The application has several
Share
Use dojo.declare, create your custom widget extended by TabBar. Then in your initialization code, require that module and in your markup code, set the dojoType to your custom module name. Something similar to this:
Instead of an UL / LI html markup in your code, simply add:
Running sample : http://jsfiddle.net/8sD6A/