跳到主要内容
版本:v8

选择器中的独立列组件

shadow

选择器中的独立列。更多详情请参阅 ion-picker 文档。

属性

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.

This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
Attributemode
Type"ios" | "md"
Defaultundefined

value

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

事件

NameDescriptionBubbles
ionChangeEmitted when the value has changed.

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

方法

setFocus

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

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS 自定义属性

No CSS custom properties available for this component.

插槽

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