Menu API

Create Menu Items

This sample demonstrates how to customize the application menu using the BlackBerry WebWorks Menu Item API.

For a demonstration on how to create a swipe-down menu for Tablet OS, see application events

Demo

  1. Click on the BlackBerry Menu Button to see the list of menu items that were added during this page's "onload" event. You should see the following menu items:
    • Open App World
    • About
    • Refresh
    • Share ...
  2. Click on the "Add to Menu" button below to see how you can contextualize the menu, by adding or removing items while the application is still open:

    Caption :