mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(select): make note about interfaceOptions and alert input/buttons clearer (#21166)
This commit is contained in:
4
core/src/components.d.ts
vendored
4
core/src/components.d.ts
vendored
@ -2051,7 +2051,7 @@ export namespace Components {
|
|||||||
*/
|
*/
|
||||||
"interface": SelectInterface;
|
"interface": SelectInterface;
|
||||||
/**
|
/**
|
||||||
* Any additional options that the `alert`, `action-sheet` or `popover` interface can take. See the [AlertController API docs](../../alert/AlertController/#create), the [ActionSheetController API docs](../../action-sheet/ActionSheetController/#create) and the [PopoverController API docs](../../popover/PopoverController/#create) for the create options for each interface.
|
* Any additional options that the `alert`, `action-sheet` or `popover` interface can take. See the [AlertController API docs](../../alert/AlertController/#create), the [ActionSheetController API docs](../../action-sheet/ActionSheetController/#create) and the [PopoverController API docs](../../popover/PopoverController/#create) for the create options for each interface. Note: `interfaceOptions` will not override `inputs` or `buttons` with the `alert` interface.
|
||||||
*/
|
*/
|
||||||
"interfaceOptions": any;
|
"interfaceOptions": any;
|
||||||
/**
|
/**
|
||||||
@ -5237,7 +5237,7 @@ declare namespace LocalJSX {
|
|||||||
*/
|
*/
|
||||||
"interface"?: SelectInterface;
|
"interface"?: SelectInterface;
|
||||||
/**
|
/**
|
||||||
* Any additional options that the `alert`, `action-sheet` or `popover` interface can take. See the [AlertController API docs](../../alert/AlertController/#create), the [ActionSheetController API docs](../../action-sheet/ActionSheetController/#create) and the [PopoverController API docs](../../popover/PopoverController/#create) for the create options for each interface.
|
* Any additional options that the `alert`, `action-sheet` or `popover` interface can take. See the [AlertController API docs](../../alert/AlertController/#create), the [ActionSheetController API docs](../../action-sheet/ActionSheetController/#create) and the [PopoverController API docs](../../popover/PopoverController/#create) for the create options for each interface. Note: `interfaceOptions` will not override `inputs` or `buttons` with the `alert` interface.
|
||||||
*/
|
*/
|
||||||
"interfaceOptions"?: any;
|
"interfaceOptions"?: any;
|
||||||
/**
|
/**
|
||||||
|
@ -899,12 +899,12 @@ export const InterfaceOptionsSelection: React.FC = () => {
|
|||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
| Property | Attribute | Description | Type | Default |
|
| Property | Attribute | Description | Type | Default |
|
||||||
| ------------------ | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -------------- |
|
| ------------------ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -------------- |
|
||||||
| `cancelText` | `cancel-text` | The text to display on the cancel button. | `string` | `'Cancel'` |
|
| `cancelText` | `cancel-text` | The text to display on the cancel button. | `string` | `'Cancel'` |
|
||||||
| `compareWith` | `compare-with` | A property name or function used to compare object values | `((currentValue: any, compareValue: any) => boolean) \| null \| string \| undefined` | `undefined` |
|
| `compareWith` | `compare-with` | A property name or function used to compare object values | `((currentValue: any, compareValue: any) => boolean) \| null \| string \| undefined` | `undefined` |
|
||||||
| `disabled` | `disabled` | If `true`, the user cannot interact with the select. | `boolean` | `false` |
|
| `disabled` | `disabled` | If `true`, the user cannot interact with the select. | `boolean` | `false` |
|
||||||
| `interface` | `interface` | The interface the select should use: `action-sheet`, `popover` or `alert`. | `"action-sheet" \| "alert" \| "popover"` | `'alert'` |
|
| `interface` | `interface` | The interface the select should use: `action-sheet`, `popover` or `alert`. | `"action-sheet" \| "alert" \| "popover"` | `'alert'` |
|
||||||
| `interfaceOptions` | `interface-options` | Any additional options that the `alert`, `action-sheet` or `popover` interface can take. See the [AlertController API docs](../../alert/AlertController/#create), the [ActionSheetController API docs](../../action-sheet/ActionSheetController/#create) and the [PopoverController API docs](../../popover/PopoverController/#create) for the create options for each interface. | `any` | `{}` |
|
| `interfaceOptions` | `interface-options` | Any additional options that the `alert`, `action-sheet` or `popover` interface can take. See the [AlertController API docs](../../alert/AlertController/#create), the [ActionSheetController API docs](../../action-sheet/ActionSheetController/#create) and the [PopoverController API docs](../../popover/PopoverController/#create) for the create options for each interface. Note: `interfaceOptions` will not override `inputs` or `buttons` with the `alert` interface. | `any` | `{}` |
|
||||||
| `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` |
|
| `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` |
|
||||||
| `multiple` | `multiple` | If `true`, the select can accept multiple values. | `boolean` | `false` |
|
| `multiple` | `multiple` | If `true`, the select can accept multiple values. | `boolean` | `false` |
|
||||||
| `name` | `name` | The name of the control, which is submitted with the form data. | `string` | `this.inputId` |
|
| `name` | `name` | The name of the control, which is submitted with the form data. | `string` | `this.inputId` |
|
||||||
|
@ -82,6 +82,8 @@ export class Select implements ComponentInterface {
|
|||||||
* [ActionSheetController API docs](../../action-sheet/ActionSheetController/#create) and the
|
* [ActionSheetController API docs](../../action-sheet/ActionSheetController/#create) and the
|
||||||
* [PopoverController API docs](../../popover/PopoverController/#create) for the
|
* [PopoverController API docs](../../popover/PopoverController/#create) for the
|
||||||
* create options for each interface.
|
* create options for each interface.
|
||||||
|
*
|
||||||
|
* Note: `interfaceOptions` will not override `inputs` or `buttons` with the `alert` interface.
|
||||||
*/
|
*/
|
||||||
@Prop() interfaceOptions: any = {};
|
@Prop() interfaceOptions: any = {};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user