Skip to content

Commit

Permalink
changes the method to be a title in the docs for the in the menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
fredkingham committed Jul 18, 2018
1 parent 731980d commit 6c1b36d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/docs/reference/core_menus.md
Expand Up @@ -2,7 +2,7 @@

Opal provides classes and methods to define application menus programatically.

## opal.core.MenuItem
### opal.core.MenuItem

An item in an application menu.

Expand All @@ -16,9 +16,11 @@ An item in an application menu.
* index - a number to use as the primary sort order for your menu items

**Methods**
* for_user - a method that takes a user and returns True by default. Override this if you want menu items hidden for certain users.

## opal.core.Menu
#### for_user
A method that takes a user and returns True by default. Override this if you want menu items hidden for certain users.

### opal.core.Menu

The menu for an Opal application. On initialization it will construct a menu
for the current user, pulling items from the current app, and any plugins.

0 comments on commit 6c1b36d

Please sign in to comment.