メインコンテンツまでスキップ
バージョン: v8

ion-radio

shadow

Properties

alignment

DescriptionRadioとラベルの十字軸上の配置を制御する方法。"start":ラベルとコントロールはLTRでは横軸の左側に、RTLでは右側に表示されます。"center":ラベルとコントロールはLTRでもRTLでも横軸の中央に表示されます。このプロパティを設定すると、Radioの displayblock に変更されます。
Attributealignment
Type"center" | "start" | undefined
Defaultundefined

color

Descriptionアプリケーションのカラーパレットから使用する色を指定します。デフォルトのオプションは以下の通りです。 "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", と "dark" です.色に関する詳しい情報は theming を参照してください。
Attributecolor
Type"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record<never, never> | undefined
Defaultundefined

disabled

Descriptiontrueの場合、ユーザはRadioと対話することができません。
Attributedisabled
Typeboolean
Defaultfalse

justify

DescriptionラベルとRadioを1行にまとめる方法。"start":ラベルとRadioはLTRでは左に、RTLでは右に表示されます。"end":ラベルとRadioはLTRでは右に、RTLでは左に表示されます。"space-between":ラベルとRadioは行の反対側に表示され、2つの要素の間にはスペースが入ります。このプロパティを設定すると、Radioの displayblock に変更されます。
Attributejustify
Type"end" | "space-between" | "start" | undefined
Defaultundefined

labelPlacement

DescriptionRadioに対してラベルを配置する位置。start":ラベルはLTRではRadioの左に、RTLでは右に表示されます。end":ラベルはLTRではRadioの右、RTLでは左に表示される。fixed":ラベルの幅が固定される以外は "start" と同じ動作をします。長いテキストは省略記号("...")で切り捨てられます。stacked":ラベルは向きに関係なくRadioの上に表示されます。ラベルの整列は alignment プロパティで制御できます。
Attributelabel-placement
Type"end" | "fixed" | "stacked" | "start"
Default'start'

mode

Descriptionmodeは、どのプラットフォームのスタイルを使用するかを決定します。
Attributemode
Type"ios" | "md"
Defaultundefined

name

Descriptionフォームデータとともに送信されるコントロールの名前。
Attributename
Typestring
Defaultthis.inputId

value

DescriptionRadioの値です。
Attributevalue
Typeany
Defaultundefined

Events

NameDescription
ionBlurRadioボタンのフォーカスが外れたときに発行されます。
ionFocusRadioボタンにフォーカスが当たったときに発行されます。

CSS Shadow Parts

NameDescription
containerRadioマークの入れ物です。
labelRadioを説明するラベルテキスト。
markチェックされた状態を示すために使用されるチェックマークまたはドットです。

CSS Custom Properties

NameDescription
--border-radiusRadioのボーダー半径
--border-radiusRadioのボーダー半径
--colorRadioのカラー
--colorRadioのカラー
--color-checkedチェックしたRadioの色
--color-checkedチェックしたRadioの色
--inner-border-radius内側のチェック付きRadioのボーダー半径
--inner-border-radius内側のチェック付きRadioのボーダー半径

Slots

NameDescription
``Radioに関連付けるラベルテキストです。"labelPlacement"プロパティを使用して、Radioに対するラベルの相対的な配置を制御します。
View Source