10-10-2012 03:42 PM
I have this code:
<div data-bb-type="screen" data-bb-effect="fade">
<div data-bb-type="title" data-bb-caption="Test" data-bb-back-caption="Back" data-bb-action-caption="Go"></div>
<ul id="main">
<li>Option 1</li>
<li>Other</li>
<li>New</li>
<li>About</li>
<li>Feedback</li>
</ul>
<div data-bb-type="button" data-bb-style="stretch">Press me</div>
</div>and the title bar is not displayed, but for example button is displayed correctly...
Any idea?
Solved! Go to Solution.
10-10-2012 03:54 PM
in your index.htm file, check to make sure this is commented out and supressed:
// Remove all titles "except" input and pill buttons screen if running on BB10
if (bb.device.isBB10 && (id != 'input') && (id != 'pillButtons')) {
var titles = element.querySelectorAll('[data-bb-type=title]');
if (titles.length > 0) {
titles[0].parentNode.removeChild(titles[0]);
}
}
This ships in the Kitchen Sink sample by default -- just get ride of that area and it should start showing up. Good luck!
10-10-2012 04:08 PM
As always helpful - thank You, @JRab very much.
Guilty is Kitchen Sink - It would be better if I will be inspired by bbUI.js ![]()
10-10-2012 04:10 PM
10-10-2012 04:29 PM
JRab wrote:
haha you're too kind ;-)
and it will definitely inspire you -- I started out a few months ago -- coming from AIR it's been pretty sweet. Best of luck to you!
Thanks again. I started last week, from AIR too
(From AIR forum I know Your helpfulness)