Skip to main content

ion-picker-column

shadow

选择器中的单独列。请访问 ion-picker 文档了解更多详细信息。

¥An individual column within a picker. Visit the ion-picker documentation for more details.

属性

¥Properties

color

DescriptionThe 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.
Attributecolor
Type"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string | undefined
Default'primary'

disabled

DescriptionIf true, the user cannot interact with the picker.
Attributedisabled
Typeboolean
Defaultfalse

mode

DescriptionThe mode determines which platform styles to use.
Attributemode
Type"ios" | "md"
Defaultundefined

value

DescriptionThe selected option in the picker.
Attributevalue
Typenumber | string | undefined
Defaultundefined

事件

¥Events

NameDescriptionBubbles
ionChangeEmitted when the value has changed.

This event will not emit when programmatically setting the value property.
true

方法

¥Methods

setFocus

DescriptionSets focus on the scrollable container within the picker column. Use this method instead of the global pickerColumn.focus().
SignaturesetFocus() => Promise<void>

CSS 阴影部分

¥CSS Shadow Parts

No CSS shadow parts available for this component.

CSS 自定义属性

¥CSS Custom Properties

No CSS custom properties available for this component.

插槽

¥Slots

NameDescription
prefixContent to show on the left side of the picker options.
suffixContent to show on the right side of the picker options.