mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(menu): update the docs for toggle and close
closes driftyco/ionic-site#393
This commit is contained in:
@@ -6,10 +6,12 @@ import {MenuController} from './menu-controller';
|
||||
/**
|
||||
* @name MenuClose
|
||||
* @description
|
||||
* The `menuClose` directive can be placed on any button to
|
||||
* automatically close an open menu.
|
||||
* The `menuClose` directive can be placed on any button to close an open menu.
|
||||
*
|
||||
* @usage
|
||||
*
|
||||
* A simple `menuClose` button can be added using the following markup:
|
||||
*
|
||||
* ```html
|
||||
* <button menuClose>Close Menu</button>
|
||||
* ```
|
||||
|
||||
@@ -7,10 +7,16 @@ import {MenuController} from './menu-controller';
|
||||
/**
|
||||
* @name MenuToggle
|
||||
* @description
|
||||
* The `menuToggle` directive can be placed on any button to
|
||||
* automatically close an open menu.
|
||||
* The `menuToggle` directive can be placed on any button to toggle a menu open or closed.
|
||||
* If it is added to the [NavBar](../../nav/NavBar) of a page, the button will only appear
|
||||
* when the page it's in is currently a root page. See the [Menu Navigation Bar Behavior](../Menu#navigation-bar-behavior)
|
||||
* docs for more information.
|
||||
*
|
||||
*
|
||||
* @usage
|
||||
*
|
||||
* A simple `menuToggle` button can be added using the following markup:
|
||||
*
|
||||
* ```html
|
||||
* <button menuToggle>Toggle Menu</button>
|
||||
* ```
|
||||
|
||||
@@ -44,8 +44,8 @@ import {isTrueProperty} from '../../util/util';
|
||||
*
|
||||
* If a [MenuToggle](../MenuToggle) button is added to the [NavBar](../../nav/NavBar) of
|
||||
* a page, the button will only appear when the page it's in is currently a root page. The
|
||||
* root page is the initial page loaded in the app, or it can be set using the [setRoot](../../nav/NavController/#setRoot)
|
||||
* method on the [NavController](../../nav/NavController).
|
||||
* root page is the initial page loaded in the app, or a page that has been set as the root
|
||||
* using the [setRoot](../../nav/NavController/#setRoot) method on the [NavController](../../nav/NavController).
|
||||
*
|
||||
* For example, say the application has two pages, `Page1` and `Page2`, and both have a
|
||||
* `MenuToggle` button in their navigation bars. Assume the initial page loaded into the app
|
||||
|
||||
Reference in New Issue
Block a user