10-03-2013 01:24 PM
I am using BB10 Jquery theme. I am a beginner. I am trying to add the context menu feature in my app. But I am not able to understand how to use the code given on this page https://developer.blackberry.com/html5/apis/blackb
I know BBUI is also available but I don't know how to use it and I have made my app's whole code and design using Jquery as it is very easy to use.
Could you please provide me complete working sample files or code to show how to add a context menu in a Jquery Webworks app?
Solved! Go to Solution.
10-03-2013 03:12 PM
10-04-2013 12:10 AM - edited 10-04-2013 12:11 AM
Correct, you don't want to be mixing bbUI and jQuery since they are both UI frameworks. EDIT: However the context menu implementation in the sample is not dependant on bbUI. bbUI does have its own Context Menu approach, but that is not what is implemented that sample.
While the Github sample uses bbUI for the general layout of the pages, the Context Menu implementation is a direct WebWorks API implementation which can be found here:
Specifically, based on these APIs:
10-04-2013 03:33 AM - edited 10-04-2013 01:34 PM
I downloaded the sample, moved it into RippleSites folder and ran it in Ripple UI. Clicking and Holding the text does not activate the context menu. Chrome's console shows the following errors
This webworks.js file does not load.
Uncaught TypeError: Cannot call method 'addItem' of undefined
I am using the latest versions of Chrome and Ripple UI.
10-04-2013 02:31 PM