ion-select-option
セレクトオプションは、セレクトの子要素となるコンポーネントです。定義された各オプションは、Selectダイアログに渡され表示されます。
使用例については、Selectのドキュメントを参照してください。
Properties
description
| Description | Text that is placed underneath the option text to provide additional details about the option. |
| Attribute | description |
| Type | string | undefined |
| Default | undefined |
disabled
| Description | If true, the user cannot interact with the select option. |
| Attribute | disabled |
| Type | boolean |
| Default | false |
justify
| Description | How to pack the label and the option's selection control within a line. "start": The label and radio will appear on the left in LTR and on the right in RTL. "end": The label and radio will appear on the right in LTR and on the left in RTL. "space-between": The label and radio will appear on opposite ends of the line with space between the two elements.Applies to the alert, popover, and modal interfaces, but has no visible effect on radio options in popover or modal on md (the radio control is hidden there).When unset, the interface picks a default based on mode and control type. |
| Attribute | justify |
| Type | "end" | "space-between" | "start" | undefined |
| Default | undefined |
labelPlacement
| Description | Where the label is placed relative to the option's selection control (radio circle or checkbox box) when the option is rendered in an alert, popover, or modal interface. "start": The label will appear to the left of the radio in LTR and to the right in RTL. "end": The label will appear to the right of the radio in LTR and to the left in RTL.Applies to the alert, popover, and modal interfaces, but has no visible effect on radio options in popover or modal on md (the radio control is hidden there).When unset, the interface picks a default based on mode and control type. |
| Attribute | label-placement |
| Type | "end" | "start" | undefined |
| Default | undefined |
mode
| Description | The mode determines the platform behaviors of the component. This is a virtual property that is set once during initialization and will not update if you change its value after the initial render. |
| Attribute | mode |
| Type | "ios" | "md" |
| Default | undefined |
value
| Description | オプションのテキスト値です。 |
| Attribute | value |
| Type | any |
| Default | undefined |
イベント
No events available for this component.
メソッド
No public methods available for this component.
CSS Shadow Parts
No CSS shadow parts available for this component.
CSSカスタムプロパティ
No CSS custom properties available for this component.
スロット
| Name | Description |
|---|---|
| slotがない状態で提供される場合、コンテンツは名前付きslotの間に配置されます。 | |
end | Content is placed to the right of the select option text in LTR, and to the left in RTL. |
start | Content is placed to the left of the select option text in LTR, and to the right in RTL. |