Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Posts: 17
Registered: ‎12-03-2008
My Device: Not Specified

bbUi.js How to disable action tabs?

Is there a way to disable action tabs in action bar in bbUI.js? I am putting Previous and Next icons and when I am at the first page or last page, I want to disable the previous or next icons respectively. I did remove the onclick events in the first and last pages, but still I can click them even though nothing happens. I just want to give a disabled button feeling to the users.

 

Regards,

Satish.

 

Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: bbUi.js How to disable action tabs?

You can do that by the javascript interface show() and hide() methods.

https://github.com/blackberry/bbUI.js/wiki/Action-Bar

 

 

Alternatively, you can also change the css style to none

Nuno
New Developer
Posts: 17
Registered: ‎12-03-2008
My Device: Not Specified

Re: bbUi.js How to disable action tabs?

Thanks for the help!