mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): update to latest stencil
This commit is contained in:
@@ -37,213 +37,28 @@ This attribute specifies the size of the button. Setting this attribute will cha
|
||||
|
||||
## Properties
|
||||
|
||||
#### buttonType
|
||||
|
||||
string
|
||||
|
||||
The type of button.
|
||||
Possible values are: `"button"`, `"bar-button"`.
|
||||
|
||||
|
||||
#### color
|
||||
|
||||
string
|
||||
|
||||
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).
|
||||
|
||||
|
||||
#### disabled
|
||||
|
||||
boolean
|
||||
|
||||
If true, the user cannot interact with the button. Defaults to `false`.
|
||||
|
||||
|
||||
#### expand
|
||||
|
||||
string
|
||||
|
||||
Set to `"block"` for a full-width button or to `"full"` for a full-width button
|
||||
without left and right borders.
|
||||
|
||||
|
||||
#### fill
|
||||
|
||||
string
|
||||
|
||||
Set to `"clear"` for a transparent button, to `"outline"` for a transparent
|
||||
button with a border, or to `"solid"`. The default style is `"solid"` except inside of
|
||||
a toolbar, where the default is `"clear"`.
|
||||
|
||||
|
||||
#### href
|
||||
|
||||
string
|
||||
|
||||
Contains a URL or a URL fragment that the hyperlink points to.
|
||||
If this property is set, an anchor tag will be rendered.
|
||||
|
||||
|
||||
#### mode
|
||||
|
||||
string
|
||||
|
||||
The mode determines which platform styles to use.
|
||||
Possible values are: `"ios"` or `"md"`.
|
||||
|
||||
|
||||
#### routerDirection
|
||||
|
||||
string
|
||||
|
||||
When using a router, it specifies the transition direction when navigating to
|
||||
another page using `href`.
|
||||
|
||||
|
||||
#### shape
|
||||
|
||||
string
|
||||
|
||||
The button shape.
|
||||
Possible values are: `"round"`.
|
||||
|
||||
|
||||
#### size
|
||||
|
||||
string
|
||||
|
||||
The button size.
|
||||
Possible values are: `"small"`, `"default"`, `"large"`.
|
||||
|
||||
|
||||
#### strong
|
||||
|
||||
boolean
|
||||
|
||||
If true, activates a button with a heavier font weight.
|
||||
|
||||
|
||||
#### type
|
||||
|
||||
string
|
||||
|
||||
The type of the button.
|
||||
Possible values are: `"submit"`, `"reset"` and `"button"`.
|
||||
Default value is: `"button"`
|
||||
|
||||
|
||||
## Attributes
|
||||
|
||||
#### button-type
|
||||
|
||||
string
|
||||
|
||||
The type of button.
|
||||
Possible values are: `"button"`, `"bar-button"`.
|
||||
|
||||
|
||||
#### color
|
||||
|
||||
string
|
||||
|
||||
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).
|
||||
|
||||
|
||||
#### disabled
|
||||
|
||||
boolean
|
||||
|
||||
If true, the user cannot interact with the button. Defaults to `false`.
|
||||
|
||||
|
||||
#### expand
|
||||
|
||||
string
|
||||
|
||||
Set to `"block"` for a full-width button or to `"full"` for a full-width button
|
||||
without left and right borders.
|
||||
|
||||
|
||||
#### fill
|
||||
|
||||
string
|
||||
|
||||
Set to `"clear"` for a transparent button, to `"outline"` for a transparent
|
||||
button with a border, or to `"solid"`. The default style is `"solid"` except inside of
|
||||
a toolbar, where the default is `"clear"`.
|
||||
|
||||
|
||||
#### href
|
||||
|
||||
string
|
||||
|
||||
Contains a URL or a URL fragment that the hyperlink points to.
|
||||
If this property is set, an anchor tag will be rendered.
|
||||
|
||||
|
||||
#### mode
|
||||
|
||||
string
|
||||
|
||||
The mode determines which platform styles to use.
|
||||
Possible values are: `"ios"` or `"md"`.
|
||||
|
||||
|
||||
#### router-direction
|
||||
|
||||
string
|
||||
|
||||
When using a router, it specifies the transition direction when navigating to
|
||||
another page using `href`.
|
||||
|
||||
|
||||
#### shape
|
||||
|
||||
string
|
||||
|
||||
The button shape.
|
||||
Possible values are: `"round"`.
|
||||
|
||||
|
||||
#### size
|
||||
|
||||
string
|
||||
|
||||
The button size.
|
||||
Possible values are: `"small"`, `"default"`, `"large"`.
|
||||
|
||||
|
||||
#### strong
|
||||
|
||||
boolean
|
||||
|
||||
If true, activates a button with a heavier font weight.
|
||||
|
||||
|
||||
#### type
|
||||
|
||||
string
|
||||
|
||||
The type of the button.
|
||||
Possible values are: `"submit"`, `"reset"` and `"button"`.
|
||||
Default value is: `"button"`
|
||||
| Property | Attribute | Description | Type |
|
||||
| ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
|
||||
| `buttonType` | `button-type` | The type of button. Possible values are: `"button"`, `"bar-button"`. | `string` |
|
||||
| `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 button. Defaults to `false`. | `boolean` |
|
||||
| `expand` | `expand` | Set to `"block"` for a full-width button or to `"full"` for a full-width button without left and right borders. | `'full' | 'block'` |
|
||||
| `fill` | `fill` | Set to `"clear"` for a transparent button, to `"outline"` for a transparent button with a border, or to `"solid"`. The default style is `"solid"` except inside of a toolbar, where the default is `"clear"`. | `'clear' | 'outline' | 'solid' | 'default'` |
|
||||
| `href` | `href` | Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered. | `string` |
|
||||
| `mode` | `mode` | The mode determines which platform styles to use. Possible values are: `"ios"` or `"md"`. | `Mode` |
|
||||
| `routerDirection` | `router-direction` | When using a router, it specifies the transition direction when navigating to another page using `href`. | `RouterDirection` |
|
||||
| `shape` | `shape` | The button shape. Possible values are: `"round"`. | `'round'` |
|
||||
| `size` | `size` | The button size. Possible values are: `"small"`, `"default"`, `"large"`. | `'small' | 'default' | 'large'` |
|
||||
| `strong` | `strong` | If true, activates a button with a heavier font weight. | `boolean` |
|
||||
| `type` | `type` | The type of the button. Possible values are: `"submit"`, `"reset"` and `"button"`. Default value is: `"button"` | `'submit' | 'reset' | 'button'` |
|
||||
|
||||
|
||||
## Events
|
||||
|
||||
#### ionBlur
|
||||
|
||||
Emitted when the button loses focus.
|
||||
|
||||
|
||||
#### ionFocus
|
||||
|
||||
Emitted when the button has focus.
|
||||
|
||||
| Event | Description |
|
||||
| ---------- | ------------------------------------ |
|
||||
| `ionBlur` | Emitted when the button loses focus. |
|
||||
| `ionFocus` | Emitted when the button has focus. |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user