You will need to include the BBUI.js WebWorks extension in your SDK in order to use the Context Menu APIs. https://github.com/blackberry/bbUI.js/tree/master/pkg/bb10
This sample demonstrates how to leverage the APIs for adding, searching for, and removing Calendar events. For more information on these APIs, please visit: https://developer.blackberry.com/html5/apis/
This sample also makes use of BBUI.js, a UI framework designed for BlackBerry devices. For more information, please visit: https://github.com/blackberry/bbUI.js
The primary functionality is implemented in index.js, while the remaining files are for laying out our UI components.