blackberry / bbUI.js

BlackBerry UI look and feel JavaScript toolkit for WebWorks
Apache License 2.0
312 stars 192 forks source link

Reorder / Redraw / Remove Action Bar "Tabs" overflow #1034

Open RyanGermann opened 10 years ago

RyanGermann commented 10 years ago

I would like to be able to add and remove Action Bar items from the Tab Overflow menu. My app is a one-to-many data management app where "one" is the user, and "many" is lists of interactions with various people and / or services. The items in the Tab menu represent dynamic (not static) "lists", and picking a different tab will show a different list.

There will always be at least ONE Tab (because zero makes no sense) but the user should be able to add and delete some of the "many" which should therefore add or delete the associated tabs from the Tab Overflow menu.

A workaround I could use would be to add or delete the new "list", then use bb.pushScreen to force my app to go to a screen that would cause the whole main app screen to redraw (which would rebuild the Tab Overflow menu) but that seems to be a very crude way to do things.