mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(): update stencil
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
"ionicons": "4.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@stencil/core": "0.14.0-1",
|
||||
"@stencil/core": "0.14.0-2",
|
||||
"@stencil/dev-server": "latest",
|
||||
"@stencil/sass": "0.1.1",
|
||||
"@stencil/utils": "latest",
|
||||
|
6
core/src/components.d.ts
vendored
6
core/src/components.d.ts
vendored
@ -3964,6 +3964,9 @@ export namespace Components {
|
||||
}
|
||||
|
||||
interface IonSegmentButton {
|
||||
/**
|
||||
* If `true`, the segment button is selected. Defaults to `false`.
|
||||
*/
|
||||
'checked': boolean;
|
||||
/**
|
||||
* 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).
|
||||
@ -3983,6 +3986,9 @@ export namespace Components {
|
||||
'value': string;
|
||||
}
|
||||
interface IonSegmentButtonAttributes extends StencilHTMLAttributes {
|
||||
/**
|
||||
* If `true`, the segment button is selected. Defaults to `false`.
|
||||
*/
|
||||
'checked'?: boolean;
|
||||
/**
|
||||
* 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).
|
||||
|
@ -30,10 +30,10 @@ Dismiss the open action sheet overlay.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `id` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
| `id` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -17,10 +17,10 @@ A button's `role` property can either be `destructive` or `cancel`. Buttons with
|
||||
## Properties
|
||||
|
||||
| Property | Attribute | Description | Type |
|
||||
| ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------- | -------------------------------- |
|
||||
| ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------- | --------------------------------- |
|
||||
| `animated` | `animated` | If `true`, the action sheet will animate. Defaults to `true`. | `boolean` |
|
||||
| `backdropDismiss` | `backdrop-dismiss` | If `true`, the action sheet will be dismissed when the backdrop is clicked. Defaults to `true`. | `boolean` |
|
||||
| `buttons` | -- | An array of buttons for the action sheet. | `(ActionSheetButton | string)[]` |
|
||||
| `buttons` | -- | An array of buttons for the action sheet. | `(ActionSheetButton \| string)[]` |
|
||||
| `cssClass` | `css-class` | Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces. | `string`, `string[]` |
|
||||
| `enterAnimation` | -- | Animation to use when the action sheet is presented. | `AnimationBuilder` |
|
||||
| `header` | `header` | Title for the action sheet. | `string` |
|
||||
@ -53,9 +53,9 @@ Dismiss the action sheet overlay after it has been presented.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -47,10 +47,10 @@ Dismiss the open alert overlay.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `id` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
| `id` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -26,10 +26,10 @@ Alerts can also include several different inputs whose data can be passed back t
|
||||
## Properties
|
||||
|
||||
| Property | Attribute | Description | Type |
|
||||
| ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------- | -------------------------- |
|
||||
| ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------- | --------------------------- |
|
||||
| `animated` | `animated` | If `true`, the alert will animate. Defaults to `true`. | `boolean` |
|
||||
| `backdropDismiss` | `backdrop-dismiss` | If `true`, the alert will be dismissed when the backdrop is clicked. Defaults to `true`. | `boolean` |
|
||||
| `buttons` | -- | Array of buttons to be added to the alert. | `(AlertButton | string)[]` |
|
||||
| `buttons` | -- | Array of buttons to be added to the alert. | `(AlertButton \| string)[]` |
|
||||
| `cssClass` | `css-class` | Additional classes to apply for custom CSS. If multiple classes are provided they should be separated by spaces. | `string`, `string[]` |
|
||||
| `enterAnimation` | -- | Animation to use when the alert is presented. | `AnimationBuilder` |
|
||||
| `header` | `header` | The main title in the heading of the alert. | `string` |
|
||||
@ -64,9 +64,9 @@ Dismiss the alert overlay after it has been presented.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -16,8 +16,8 @@ Creates an animation instance
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------------------ | ------------------------------ | ----------- |
|
||||
| `animationBuilder` | `AnimationBuilder | undefined` | |
|
||||
| ------------------ | ------------------------------- | ----------- |
|
||||
| `animationBuilder` | `AnimationBuilder \| undefined` | |
|
||||
| `baseEl` | `any` | |
|
||||
| `opts` | `any` | |
|
||||
|
||||
|
@ -86,9 +86,9 @@ Scroll to a specified X/Y location in the component
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ---------- | --------------------------- | ----------- |
|
||||
| `x` | `number | null | undefined` | |
|
||||
| `y` | `number | null | undefined` | |
|
||||
| ---------- | ----------------------------- | ----------- |
|
||||
| `x` | `number \| null \| undefined` | |
|
||||
| `y` | `number \| null \| undefined` | |
|
||||
| `duration` | `number` | |
|
||||
|
||||
#### Returns
|
||||
|
@ -10,7 +10,7 @@ If the FAB button is not wrapped with `<ion-fab>`, it will scroll with the conte
|
||||
## Properties
|
||||
|
||||
| Property | Attribute | Description | Type |
|
||||
| ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
|
||||
| ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
|
||||
| `activated` | `activated` | If `true`, the fab button will be show a close icon. 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). | `Color` |
|
||||
| `disabled` | `disabled` | If `true`, the user cannot interact with the fab button. Defaults to `false`. | `boolean` |
|
||||
@ -19,6 +19,44 @@ If the FAB button is not wrapped with `<ion-fab>`, it will scroll with the conte
|
||||
| `routerDirection` | `router-direction` | When using a router, it specifies the transition direction when navigating to another page using `href`. | `RouterDirection` |
|
||||
| `show` | `show` | If `true`, the fab button will show when in a fab-list. | `boolean` |
|
||||
| `translucent` | `translucent` | If `true`, the fab button will be translucent. Defaults to `false`. | `boolean` |
|
||||
| `type` | `type` | The type of the button. Possible values are: `"submit"`, `"reset"` and `"button"`. Default value is: `"button"` | `"submit"`, `"reset"`, `"button"` |
|
||||
|
||||
|
||||
## Events
|
||||
|
||||
| Event | Description |
|
||||
| ---------- | ------------------------------------ |
|
||||
| `ionBlur` | Emitted when the button loses focus. |
|
||||
| `ionFocus` | Emitted when the button has focus. |
|
||||
|
||||
|
||||
## CSS Custom Properties
|
||||
|
||||
| Name | Description |
|
||||
| ------------------------ | --------------------------------------- |
|
||||
| `--background` | Background of the button |
|
||||
| `--background-activated` | Background of the button when activated |
|
||||
| `--background-focused` | Background of the button when focused |
|
||||
| `--border-color` | Border color of the button |
|
||||
| `--border-radius` | Border radius of the button |
|
||||
| `--border-style` | Border style of the button |
|
||||
| `--border-width` | Border width of the button |
|
||||
| `--box-shadow` | Box shadow of the button |
|
||||
| `--color` | Text color of the button |
|
||||
| `--color-activated` | Text color of the button when activated |
|
||||
| `--color-focused` | Text color of the button when focused |
|
||||
| `--height` | Height of the button |
|
||||
| `--margin-bottom` | Margin bottom of the button |
|
||||
| `--margin-end` | Margin end of the button |
|
||||
| `--margin-start` | Margin start of the button |
|
||||
| `--margin-top` | Margin top of the button |
|
||||
| `--padding-bottom` | Padding bottom of the button |
|
||||
| `--padding-end` | Padding end of the button |
|
||||
| `--padding-start` | Padding start of the button |
|
||||
| `--padding-top` | Padding top of the button |
|
||||
| `--ripple-color` | Color of the button ripple effect |
|
||||
| `--transition` | Transition of the button |
|
||||
| `--width` | Width of the button |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
@ -12,7 +12,7 @@ Label is a wrapper element that can be used in combination with `ion-item`, `ion
|
||||
| ---------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
|
||||
| `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). | `Color` |
|
||||
| `mode` | `mode` | The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. | `Mode` |
|
||||
| `position` | `position` | The position determines where and how the label behaves inside an item. Possible values are: 'inline' | 'fixed' | 'stacked' | 'floating' | `"fixed"`, `"stacked"`, `"floating"` |
|
||||
| `position` | `position` | The position determines where and how the label behaves inside an item. Possible values are: 'inline' \| 'fixed' \| 'stacked' \| 'floating' | `"fixed"`, `"stacked"`, `"floating"` |
|
||||
|
||||
|
||||
## Events
|
||||
@ -22,6 +22,13 @@ Label is a wrapper element that can be used in combination with `ion-item`, `ion
|
||||
| `ionStyle` | Emitted when the styles change. |
|
||||
|
||||
|
||||
## CSS Custom Properties
|
||||
|
||||
| Name | Description |
|
||||
| --------- | ------------------ |
|
||||
| `--color` | Color of the label |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
*Built with [StencilJS](https://stenciljs.com/)*
|
||||
|
@ -17,8 +17,8 @@ Create a loading overlay with loading options.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ---------------------------- | ----------- |
|
||||
| `opts` | `LoadingOptions | undefined` | |
|
||||
| ------ | ----------------------------- | ----------- |
|
||||
| `opts` | `LoadingOptions \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -33,10 +33,10 @@ Dismiss the open loading overlay.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `id` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
| `id` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -56,9 +56,9 @@ Dismiss the loading overlay after it has been presented.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -16,8 +16,8 @@ that is open. If a menu is specified, it will close that menu.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------- | --------------------------- | ----------- |
|
||||
| `menuId` | `string | null | undefined` | |
|
||||
| -------- | ----------------------------- | ----------- |
|
||||
| `menuId` | `string \| null \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -35,9 +35,9 @@ will also automatically disable all the others that are on the same side.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------------- | --------------------------- | ----------- |
|
||||
| -------------- | ----------------------------- | ----------- |
|
||||
| `shouldEnable` | `boolean` | |
|
||||
| `menuId` | `string | null | undefined` | |
|
||||
| `menuId` | `string \| null \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -56,8 +56,8 @@ return `null`.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------- | --------------------------- | ----------- |
|
||||
| `menuId` | `string | null | undefined` | |
|
||||
| -------- | ----------------------------- | ----------- |
|
||||
| `menuId` | `string \| null \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -102,8 +102,8 @@ Returns `true` if the specified menu is enabled.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------- | --------------------------- | ----------- |
|
||||
| `menuId` | `string | null | undefined` | |
|
||||
| -------- | ----------------------------- | ----------- |
|
||||
| `menuId` | `string \| null \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -119,8 +119,8 @@ will return true if any menu is currently open.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------- | --------------------------- | ----------- |
|
||||
| `menuId` | `string | null | undefined` | |
|
||||
| -------- | ----------------------------- | ----------- |
|
||||
| `menuId` | `string \| null \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -135,8 +135,8 @@ Open the menu.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------- | --------------------------- | ----------- |
|
||||
| `menuId` | `string | null | undefined` | |
|
||||
| -------- | ----------------------------- | ----------- |
|
||||
| `menuId` | `string \| null \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -172,9 +172,9 @@ Used to enable or disable the ability to swipe open the menu.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------------- | --------------------------- | ----------- |
|
||||
| -------------- | ----------------------------- | ----------- |
|
||||
| `shouldEnable` | `boolean` | |
|
||||
| `menuId` | `string | null | undefined` | |
|
||||
| `menuId` | `string \| null \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -190,8 +190,8 @@ will close.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------- | --------------------------- | ----------- |
|
||||
| `menuId` | `string | null | undefined` | |
|
||||
| -------- | ----------------------------- | ----------- |
|
||||
| `menuId` | `string \| null \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -31,10 +31,10 @@ Dismiss the open modal overlay.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `id` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
| `id` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -51,9 +51,9 @@ Dismiss the modal overlay after it has been presented.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -37,8 +37,8 @@ Returns `true` or false if the current view can go back
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ---------------------------- | ----------- |
|
||||
| `view` | `ViewController | undefined` | |
|
||||
| ------ | ----------------------------- | ----------- |
|
||||
| `view` | `ViewController \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -79,8 +79,8 @@ Gets the previous view
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ---------------------------- | ----------- |
|
||||
| `view` | `ViewController | undefined` | |
|
||||
| ------ | ----------------------------- | ----------- |
|
||||
| `view` | `ViewController \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -105,12 +105,12 @@ Inserts a component into the nav stack at the specified index. This is useful if
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ---------------- | -------------------------------------- | ----------- |
|
||||
| ---------------- | ---------------------------------------- | ----------- |
|
||||
| `insertIndex` | `number` | |
|
||||
| `component` | `T` | |
|
||||
| `componentProps` | `ComponentProps<T> | null | undefined` | |
|
||||
| `opts` | `NavOptions | null | undefined` | |
|
||||
| `done` | `TransitionDoneFn | undefined` | |
|
||||
| `componentProps` | `ComponentProps<T> \| null \| undefined` | |
|
||||
| `opts` | `NavOptions \| null \| undefined` | |
|
||||
| `done` | `TransitionDoneFn \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -125,11 +125,11 @@ Inserts an array of components into the nav stack at the specified index. The la
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------------------ | ------------------------------- | ----------- |
|
||||
| ------------------ | --------------------------------- | ----------- |
|
||||
| `insertIndex` | `number` | |
|
||||
| `insertComponents` | `NavComponent[]` | |
|
||||
| `opts` | `NavOptions | null | undefined` | |
|
||||
| `done` | `TransitionDoneFn | undefined` | |
|
||||
| `opts` | `NavOptions \| null \| undefined` | |
|
||||
| `done` | `TransitionDoneFn \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -144,9 +144,9 @@ Call to navigate back from a current component. Similar to push(), you can also
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ------------------------------- | ----------- |
|
||||
| `opts` | `NavOptions | null | undefined` | |
|
||||
| `done` | `TransitionDoneFn | undefined` | |
|
||||
| ------ | --------------------------------- | ----------- |
|
||||
| `opts` | `NavOptions \| null \| undefined` | |
|
||||
| `done` | `TransitionDoneFn \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -161,10 +161,10 @@ Pop to a specific index in the navigation stack
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----------------- | ------------------------------- | ----------- |
|
||||
| `indexOrViewCtrl` | `number | ViewController` | |
|
||||
| `opts` | `NavOptions | null | undefined` | |
|
||||
| `done` | `TransitionDoneFn | undefined` | |
|
||||
| ----------------- | --------------------------------- | ----------- |
|
||||
| `indexOrViewCtrl` | `number \| ViewController` | |
|
||||
| `opts` | `NavOptions \| null \| undefined` | |
|
||||
| `done` | `TransitionDoneFn \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -179,9 +179,9 @@ Navigate back to the root of the stack, no matter how far back that is.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | ------------------------------- | ----------- |
|
||||
| `opts` | `NavOptions | null | undefined` | |
|
||||
| `done` | `TransitionDoneFn | undefined` | |
|
||||
| ------ | --------------------------------- | ----------- |
|
||||
| `opts` | `NavOptions \| null \| undefined` | |
|
||||
| `done` | `TransitionDoneFn \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -196,11 +196,11 @@ Push a new component onto the current navigation stack. Pass any additional info
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ---------------- | -------------------------------------- | ----------- |
|
||||
| ---------------- | ---------------------------------------- | ----------- |
|
||||
| `component` | `T` | |
|
||||
| `componentProps` | `ComponentProps<T> | null | undefined` | |
|
||||
| `opts` | `NavOptions | null | undefined` | |
|
||||
| `done` | `TransitionDoneFn | undefined` | |
|
||||
| `componentProps` | `ComponentProps<T> \| null \| undefined` | |
|
||||
| `opts` | `NavOptions \| null \| undefined` | |
|
||||
| `done` | `TransitionDoneFn \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -215,11 +215,11 @@ Removes a page from the nav stack at the specified index.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------------- | ------------------------------- | ----------- |
|
||||
| ------------- | --------------------------------- | ----------- |
|
||||
| `startIndex` | `number` | |
|
||||
| `removeCount` | `number` | |
|
||||
| `opts` | `NavOptions | null | undefined` | |
|
||||
| `done` | `TransitionDoneFn | undefined` | |
|
||||
| `opts` | `NavOptions \| null \| undefined` | |
|
||||
| `done` | `TransitionDoneFn \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -234,10 +234,10 @@ Set the views of the current navigation stack and navigate to the last view. By
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------- | ------------------------------- | ----------- |
|
||||
| ------- | --------------------------------- | ----------- |
|
||||
| `views` | `any[]` | |
|
||||
| `opts` | `NavOptions | null | undefined` | |
|
||||
| `done` | `TransitionDoneFn | undefined` | |
|
||||
| `opts` | `NavOptions \| null \| undefined` | |
|
||||
| `done` | `TransitionDoneFn \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -252,11 +252,11 @@ Set the root for the current navigation stack.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ---------------- | -------------------------------------- | ----------- |
|
||||
| ---------------- | ---------------------------------------- | ----------- |
|
||||
| `component` | `T` | |
|
||||
| `componentProps` | `ComponentProps<T> | null | undefined` | |
|
||||
| `opts` | `NavOptions | null | undefined` | |
|
||||
| `done` | `TransitionDoneFn | undefined` | |
|
||||
| `componentProps` | `ComponentProps<T> \| null \| undefined` | |
|
||||
| `opts` | `NavOptions \| null \| undefined` | |
|
||||
| `done` | `TransitionDoneFn \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -271,9 +271,9 @@ Type: `Promise<boolean>`
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----------- | ------------------------------------- | ----------- |
|
||||
| ----------- | -------------------------------------- | ----------- |
|
||||
| `id` | `string` | |
|
||||
| `params` | `{ [key: string]: any; } | undefined` | |
|
||||
| `params` | `{ [key: string]: any; } \| undefined` | |
|
||||
| `direction` | `number` | |
|
||||
|
||||
#### Returns
|
||||
|
@ -30,10 +30,10 @@ Dismiss the open picker overlay.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `id` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
| `id` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -46,9 +46,9 @@ Dismiss the picker overlay after it has been presented.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -31,10 +31,10 @@ Dismiss the open popover overlay.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `id` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
| `id` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -55,9 +55,9 @@ Dismiss the popover overlay after it has been presented.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -73,8 +73,8 @@ to complete the reorder operation.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| --------------- | ----------------------------- | ----------- |
|
||||
| `listOrReorder` | `boolean | any[] | undefined` | |
|
||||
| --------------- | ------------------------------- | ----------- |
|
||||
| `listOrReorder` | `boolean \| any[] \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -29,10 +29,10 @@ While RouterOutlet has methods for navigating around, it's recommended to use th
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------------ | --------------------------------- | ----------- |
|
||||
| ------------ | ---------------------------------- | ----------- |
|
||||
| `enteringEl` | `HTMLElement` | |
|
||||
| `leavingEl` | `HTMLElement | undefined` | |
|
||||
| `opts` | `RouterOutletOptions | undefined` | |
|
||||
| `leavingEl` | `HTMLElement \| undefined` | |
|
||||
| `opts` | `RouterOutletOptions \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -57,10 +57,10 @@ Set the root component for the given navigation stack
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----------- | ------------------------------------- | ----------- |
|
||||
| ----------- | -------------------------------------- | ----------- |
|
||||
| `component` | `ComponentRef` | |
|
||||
| `params` | `{ [key: string]: any; } | undefined` | |
|
||||
| `opts` | `RouterOutletOptions | undefined` | |
|
||||
| `params` | `{ [key: string]: any; } \| undefined` | |
|
||||
| `opts` | `RouterOutletOptions \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -75,9 +75,9 @@ Type: `Promise<boolean>`
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----------- | ------------------------------------- | ----------- |
|
||||
| ----------- | -------------------------------------- | ----------- |
|
||||
| `id` | `string` | |
|
||||
| `params` | `{ [key: string]: any; } | undefined` | |
|
||||
| `params` | `{ [key: string]: any; } \| undefined` | |
|
||||
| `direction` | `number` | |
|
||||
|
||||
#### Returns
|
||||
|
@ -10,7 +10,7 @@ Segment buttons are groups of related buttons inside of a [Segment](../../segmen
|
||||
|
||||
| Property | Attribute | Description | Type |
|
||||
| ---------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
|
||||
| `checked` | `checked` | | `boolean` |
|
||||
| `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). | `Color` |
|
||||
| `disabled` | `disabled` | If `true`, the user cannot interact with the segment button. Default false. | `boolean` |
|
||||
| `mode` | `mode` | The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. | `Mode` |
|
||||
|
@ -77,8 +77,8 @@ based in `ion-select` settings.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ---- | --------------------- | ----------- |
|
||||
| `ev` | `UIEvent | undefined` | |
|
||||
| ---- | ---------------------- | ----------- |
|
||||
| `ev` | `UIEvent \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -158,9 +158,9 @@ Transition to the next slide.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------------- | --------------------- | ----------- |
|
||||
| `speed` | `number | undefined` | |
|
||||
| `runCallbacks` | `boolean | undefined` | |
|
||||
| -------------- | ---------------------- | ----------- |
|
||||
| `speed` | `number \| undefined` | |
|
||||
| `runCallbacks` | `boolean \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -175,9 +175,9 @@ Transition to the previous slide.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------------- | --------------------- | ----------- |
|
||||
| `speed` | `number | undefined` | |
|
||||
| `runCallbacks` | `boolean | undefined` | |
|
||||
| -------------- | ---------------------- | ----------- |
|
||||
| `speed` | `number \| undefined` | |
|
||||
| `runCallbacks` | `boolean \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -192,10 +192,10 @@ Transition to the specified slide.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| -------------- | --------------------- | ----------- |
|
||||
| -------------- | ---------------------- | ----------- |
|
||||
| `index` | `number` | |
|
||||
| `speed` | `number | undefined` | |
|
||||
| `runCallbacks` | `boolean | undefined` | |
|
||||
| `speed` | `number \| undefined` | |
|
||||
| `runCallbacks` | `boolean \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -55,8 +55,8 @@ Get the tab at the given index
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------------ | ------------------------------------- | ----------- |
|
||||
| `tabOrIndex` | `string | number | HTMLIonTabElement` | |
|
||||
| ------------ | --------------------------------------- | ----------- |
|
||||
| `tabOrIndex` | `string \| number \| HTMLIonTabElement` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -71,8 +71,8 @@ Index or the Tab instance, of the tab to select.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------------ | ---------------------------- | ----------- |
|
||||
| `tabOrIndex` | `number | HTMLIonTabElement` | |
|
||||
| ------------ | ----------------------------- | ----------- |
|
||||
| `tabOrIndex` | `number \| HTMLIonTabElement` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -14,6 +14,13 @@
|
||||
| `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). | `Color` |
|
||||
|
||||
|
||||
## CSS Custom Properties
|
||||
|
||||
| Name | Description |
|
||||
| --------- | ----------------------- |
|
||||
| `--color` | Text color of the title |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
*Built with [StencilJS](https://stenciljs.com/)*
|
||||
|
@ -15,8 +15,8 @@ Create a toast overlay with toast options.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------------- | ----------- |
|
||||
| `opts` | `ToastOptions | undefined` | |
|
||||
| ------ | --------------------------- | ----------- |
|
||||
| `opts` | `ToastOptions \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
@ -31,10 +31,10 @@ Dismiss the open toast overlay.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `id` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
| `id` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
@ -58,9 +58,9 @@ Dismiss the toast overlay after it has been presented.
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ------ | -------------------- | ----------- |
|
||||
| ------ | --------------------- | ----------- |
|
||||
| `data` | `any` | |
|
||||
| `role` | `string | undefined` | |
|
||||
| `role` | `string \| undefined` | |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
Reference in New Issue
Block a user