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

@ -12,7 +12,7 @@ Segment buttons are groups of related buttons inside of a [Segment](../../segmen
| ---------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- |
| `checked` | `checked` | If `true`, the segment button is selected. Defaults to `false`. | `boolean` |
| `color` | `color` | The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics). | `string \| undefined` |
| `disabled` | `disabled` | If `true`, the user cannot interact with the segment button. Default false. | `boolean` |
| `disabled` | `disabled` | If `true`, the user cannot interact with the segment button. Defaults to `false`. | `boolean` |
| `mode` | `mode` | The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. | `"ios" \| "md"` |
| `value` | `value` | The value of the segment button. | `string` |

View File

@ -33,7 +33,7 @@ export class SegmentButton implements ComponentInterface {
@Prop({ mutable: true }) checked = false;
/**
* If `true`, the user cannot interact with the segment button. Default false.
* If `true`, the user cannot interact with the segment button. Defaults to `false`.
*/
@Prop() disabled = false;