mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
docs(components): update menu and breaking changes
This commit is contained in:
@ -962,8 +962,8 @@ These have been renamed to the following:
|
||||
|--------------|--------------------|----------------------------------------------------------------------------------------------------------|
|
||||
| `start` | `slot="secondary"` | Positions element to the `left` of the content in `ios` mode, and directly to the `right` in `md` mode. |
|
||||
| `end` | `slot="primary"` | Positions element to the `right` of the content in `ios` mode, and to the far `right` in `md` mode. |
|
||||
| `left` | `slot="start"` | Positions to the `left` of the button in LTR, and to the `right` in RTL. |
|
||||
| `right` | `slot="end"` | Positions to the `right` of the button in LTR, and to the `left` in RTL. |
|
||||
| `left` | `slot="start"` | Positions to the `left` of the content in LTR, and to the `right` in RTL. |
|
||||
| `right` | `slot="end"` | Positions to the `right` of the content in LTR, and to the `left` in RTL. |
|
||||
|
||||
**Old Usage Example:**
|
||||
|
||||
|
@ -15,19 +15,18 @@ export class MenuButton {
|
||||
|
||||
private custom = true;
|
||||
|
||||
@Prop({ context: 'config' }) config: Config;
|
||||
|
||||
/**
|
||||
* Optional property that maps to a Menu's `menuId` prop. Can also be `left` or `right` for the menu side. This is used to find the correct menu to toggle
|
||||
*/
|
||||
@Prop() menu: string;
|
||||
|
||||
/**
|
||||
* Automatically hides the content when the corresponding menu is not
|
||||
* active
|
||||
* Automatically hides the menu button when the corresponding menu is not active
|
||||
*/
|
||||
@Prop() autoHide = true;
|
||||
|
||||
@Prop({ context: 'config' }) config: Config;
|
||||
|
||||
@Element() el: HTMLElement;
|
||||
|
||||
componentWillLoad() {
|
||||
|
@ -11,8 +11,7 @@
|
||||
|
||||
boolean
|
||||
|
||||
Automatically hides the content when the corresponding menu is not
|
||||
active
|
||||
Automatically hides the menu button when the corresponding menu is not active
|
||||
|
||||
|
||||
#### menu
|
||||
@ -28,8 +27,7 @@ Optional property that maps to a Menu's `menuId` prop. Can also be `left` or `ri
|
||||
|
||||
boolean
|
||||
|
||||
Automatically hides the content when the corresponding menu is not
|
||||
active
|
||||
Automatically hides the menu button when the corresponding menu is not active
|
||||
|
||||
|
||||
#### menu
|
||||
|
Reference in New Issue
Block a user