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
Regular Contributor
annuk
Posts: 82
Registered: ‎09-26-2012
My Device: Torch 9800
My Carrier: NA

BBUI Menu not working in Ripple

Hi,

 

I am trying to build a menu bar using BBUI.

When i try to run it in Ripple i get the following error:

Uncaught Type Error: Cannot read Property 'callbacks' of undefined.

 

My html code is :

 

<div data-bb-type="screen" data-bb-title="Menus" data-bb-effect="fade">
	<div data-bb-type="title" data-bb-caption="Menus" data-bb-back-caption="Back">
		
	</div>
	<!--<script id="menuBar" src="js/menuBar.js"></script>-->
	
	<div data-bb-type="menu" >
			<div data-bb-type="menu-item" data-bb-img="images/menu_icons/icon1.png" data-bb-caption="RULES">Rules</div>
			<div data-bb-type="menu-item" data-bb-img="images/menu_icons/icon2.png"  data-bb-selected="true" data-bb-caption="OPTIONS">Options</div>
			<div data-bb-type="menu-item" data-bb-img="images/menu_icons/icon3.png"  data-bb-caption="RULES">Stats</div>
		</div>
	
	<div data-bb-type="round-panel">
		<div data-bb-type="panel-header">PlayBook &amp; BlackBerry 10</div>
		<p>When viewed on the PlayBook or BlackBerry 10 the menu will appear on the top bezel swipe down.</p>
	</div>
	<div data-bb-type="round-panel">
		<div data-bb-type="panel-header">Smartphone</div>
		<p>When viewed on a Smartphone the menu will appear when you use the Blackberry button.</p>
	</div>
	
	<div data-bb-type="action-bar" data-bb-back-caption="Back"></div>
</div>

 

Please help. Is this a ripple issue?

 

Regards,

Annuk

Please use plain text.
Developer
The_Anomaly
Posts: 322
Registered: ‎08-06-2012
My Device: Dev Alpha / Playbook / Curve 9300

Re: BBUI Menu not working in Ripple

How do you see that error?  Is it in the web inspector?  It should show you the file that caused the error.

If it helped you, click like. :smileyhappy:
Please use plain text.