mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(inputs): disabled handling (#16071)
This commit is contained in:
@ -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` |
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user