mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
docs(select-option): clarify that disabled does not apply for action sheets (#21584)
resolves https://github.com/ionic-team/ionic/issues/21578
This commit is contained in:
4
core/src/components.d.ts
vendored
4
core/src/components.d.ts
vendored
@ -2124,7 +2124,7 @@ export namespace Components {
|
|||||||
}
|
}
|
||||||
interface IonSelectOption {
|
interface IonSelectOption {
|
||||||
/**
|
/**
|
||||||
* If `true`, the user cannot interact with the select option.
|
* If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons.
|
||||||
*/
|
*/
|
||||||
"disabled": boolean;
|
"disabled": boolean;
|
||||||
/**
|
/**
|
||||||
@ -5421,7 +5421,7 @@ declare namespace LocalJSX {
|
|||||||
}
|
}
|
||||||
interface IonSelectOption {
|
interface IonSelectOption {
|
||||||
/**
|
/**
|
||||||
* If `true`, the user cannot interact with the select option.
|
* If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons.
|
||||||
*/
|
*/
|
||||||
"disabled"?: boolean;
|
"disabled"?: boolean;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -655,8 +655,8 @@ To customize an individual option, set a class on the `ion-select-option`:
|
|||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
| Property | Attribute | Description | Type | Default |
|
| Property | Attribute | Description | Type | Default |
|
||||||
| ---------- | ---------- | ----------------------------------------------------------- | --------- | ----------- |
|
| ---------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ----------- |
|
||||||
| `disabled` | `disabled` | If `true`, the user cannot interact with the select option. | `boolean` | `false` |
|
| `disabled` | `disabled` | If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons. | `boolean` | `false` |
|
||||||
| `value` | `value` | The text value of the option. | `any` | `undefined` |
|
| `value` | `value` | The text value of the option. | `any` | `undefined` |
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@ export class SelectOption implements ComponentInterface {
|
|||||||
@Element() el!: HTMLElement;
|
@Element() el!: HTMLElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If `true`, the user cannot interact with the select option.
|
* If `true`, the user cannot interact with the select option. This property does not apply when `interface="action-sheet"` as `ion-action-sheet` does not allow for disabled buttons.
|
||||||
*/
|
*/
|
||||||
@Prop() disabled = false;
|
@Prop() disabled = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user