DataZombies / jQTouch

jQT extensions jqt.activityIndicator, jqt.bars (with numeric badges), jqt.checkGroup & jqt.segmentedControl.Get updates via Twitter http://twitter.com/HeadDZombie. If you find this fork useful please make a donation via PayPal (http://tinyurl.com/2fpmx27). See below for demo links.
MIT License
159 stars 34 forks source link

Switch to different Tabbar on the same page? #50

Closed unazukini closed 13 years ago

unazukini commented 13 years ago

Hi,

Wondering if this is supported, I'm trying to switch to a different tabbar altogether for one of the pages, however I notice the bar is identified via an id #tabbar rather than a class name. This means I can't have more than one tabbar in my app, which is something I really need.

I tried looking for examples where the existing tabbar is destroyed and a new one initialized, but I cant find any either - is this possible at all?

Thanks in advance!

unazukini commented 13 years ago

I solved this the silly way - by swapping id for #tabbar to the new one and calling jQT.refreshTabbar().

If there is a smarter/correct way, please share!

Btw is there a callback for after the bars have been successfully created? Without having to setTimeout and keep checking jQT.barsReady?

DataZombies commented 13 years ago

I think that's the best way right now. the tabbar class is for future development.