mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(inputs): disabled handling (#16071)
This commit is contained in:
@@ -77,7 +77,7 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
}
|
||||
|
||||
/**
|
||||
* If `true`, the menu is disabled. Default `false`.
|
||||
* If `true`, the menu is disabled. Defaults to `false`.
|
||||
*/
|
||||
@Prop({ mutable: true }) disabled = false;
|
||||
|
||||
@@ -102,7 +102,7 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
}
|
||||
|
||||
/**
|
||||
* If `true`, swiping the menu is enabled. Default `true`.
|
||||
* If `true`, swiping the menu is enabled. Defaults to `true`.
|
||||
*/
|
||||
@Prop() swipeGesture = true;
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ These can be controlled from the templates, or programmatically using the MenuCo
|
||||
| Property | Attribute | Description | Type |
|
||||
| -------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------ | --------------------- |
|
||||
| `contentId` | `content-id` | The content's id the menu should use. | `string \| undefined` |
|
||||
| `disabled` | `disabled` | If `true`, the menu is disabled. Default `false`. | `boolean` |
|
||||
| `disabled` | `disabled` | If `true`, the menu is disabled. Defaults to `false`. | `boolean` |
|
||||
| `maxEdgeStart` | `max-edge-start` | The edge threshold for dragging the menu open. If a drag/swipe happens over this value, the menu is not triggered. | `number` |
|
||||
| `menuId` | `menu-id` | An id for the menu. | `string \| undefined` |
|
||||
| `side` | `side` | Which side of the view the menu should be placed. Default `"start"`. | `"end" \| "start"` |
|
||||
| `swipeGesture` | `swipe-gesture` | If `true`, swiping the menu is enabled. Default `true`. | `boolean` |
|
||||
| `swipeGesture` | `swipe-gesture` | If `true`, swiping the menu is enabled. Defaults to `true`. | `boolean` |
|
||||
| `type` | `type` | The display type of the menu. Available options: `"overlay"`, `"reveal"`, `"push"`. | `string` |
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user