fix(inputs): disabled handling (#16071)

This commit is contained in:
Manu MA
2018-10-25 22:50:06 +02:00
committed by GitHub
parent 4d3ad67740
commit ef6895acbd
36 changed files with 320 additions and 231 deletions

View File

@@ -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;

View File

@@ -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` |