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
Contributor
docaholic
Posts: 41
Registered: ‎05-03-2012
My Device: Blackberry 10 Alpha, Blackberry Bold 9930
My Carrier: Fido
Accepted Solution

bbUI defaulting to OS 7 style on BB 10

I'm having a bit of an issue using bbUI.

 

I have a snippet of code which says this:

 <div data-bb-type="button" class="bb-bb10-button" name="loadForm" id="loadForm" onclick="clickEvent();">Click Me!</div>

 But when I package the app and then run it in an emulator, this happens:

 <div data-bb-type="button" class="bb-bb7-button bb-bb7-button-lowres" name="loadForm" id="loadForm" onclick="clickEvent();">Click Me!</div>

 The class gets changed to a bb7 styling (in fact, all my bb10 styled elements, such as <select> and even the activity indicator) get styled to bb7 style. In the case of the activity indicator, it disappears entirely (since it's not supported on anything lower than BB10).

 

I'm using bbUI 0.9.4 by the way.

 

Thanks in advance!

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 792
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Bell

Re: bbUI defaulting to OS 7 style on BB 10

Please update to the latest 0.9.6 version of bbUI. There are a number of critical changes that went into that release.

Tim Windsor
Application Development Advisor II
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,523
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: bbUI defaulting to OS 7 style on BB 10

Hi docaholic, did twindsor's recommendation resolve your issues? If so, can you please Accept as Solution? If you're still seeing issues on the latest version of bbui.js, can you please provide the code your are using for your bb.init call?

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Contributor
docaholic
Posts: 41
Registered: ‎05-03-2012
My Device: Blackberry 10 Alpha, Blackberry Bold 9930
My Carrier: Fido

Re: bbUI defaulting to OS 7 style on BB 10

Hey,

 

Yes, twindsor's solution did work for me!

 

Thanks a lot!

 

- docaholic

Please use plain text.