From: Cheng Zhao Date: Tue, 10 Jun 2014 05:29:09 +0000 (+0800) Subject: :memo: Fix the outdated menu example, closed #389. X-Git-Tag: v0.13.1~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=444fe8bf1fd940bb1b2a0c961bd053accf338e86;p=electron.git :memo: Fix the outdated menu example, closed #389. --- diff --git a/docs/api/menu.md b/docs/api/menu.md index 54825d6f..49fb507c 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -4,12 +4,16 @@ The `Menu` class is used to create native menus that can be used as application menu and context menu. Each menu is consisted of multiple menu items, and each menu item can have a submenu. -An example of creating a menu dynamically and show it when user right clicks +An example of creating a menu dynamically in web page by using the +[remote](remote.md) module, and show it when user right clicks the page: -```javascript -var Menu = require('menu'); -var MenuItem = require('menu-item'); +```html + + ``` Another example of creating the application menu with the simple template API: ```javascript +// main.js var template = [ { label: 'Atom Shell',