ion-radio
Properties
alignment
Description | Radioとラベルの十字軸上の配置を制御する方法。"start" :ラベルとコントロールはLTRでは横軸の左側に、RTLでは右側に表示されます。"center" :ラベルとコントロールはLTRでもRTLでも横軸の中央に表示されます。このプロパティを設定すると、Radioの display が block に変更されます。 |
Attribute | alignment |
Type | "center" | "start" | undefined |
Default | undefined |
color
Description | アプリケーションのカラーパレットから使用する色を指定します。デフォルトのオプションは以下の通りです。 "primary" , "secondary" , "tertiary" , "success" , "warning" , "danger" , "light" , "medium" , と "dark" です.色に関する詳しい情報は theming を参照してください。 |
Attribute | color |
Type | "danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record<never, never> | undefined |
Default | undefined |
disabled
Description | true の場合、ユーザはRadioと対話することができません。 |
Attribute | disabled |
Type | boolean |
Default | false |
justify
Description | ラベルとRadioを1行にまとめる方法。"start" :ラベルとRadioはLTRでは左に、RTLでは右に表示されます。"end" :ラベルとRadioはLTRでは右に、RTLでは左に表示されます。"space-between" :ラベルとRadioは行の反対側に表示され、2つの要素の間にはスペースが入ります。このプロパティを設定すると、Radioの display が block に変更されます。 |
Attribute | justify |
Type | "end" | "space-between" | "start" | undefined |
Default | undefined |
labelPlacement
Description | Radioに対してラベルを配置する位置。start":ラベルはLTRではRadioの左に、RTLでは右に表示されます。end" :ラベルはLTRではRadioの右、RTLでは左に表示される。fixed":ラベルの幅が固定される以外は "start" と同じ動作をします。長いテキストは省略記号("...")で切り捨てられます。stacked" :ラベルは向きに関係なくRadioの上に表示されます。ラベルの整列は alignment プロパティで制御できます。 |
Attribute | label-placement |
Type | "end" | "fixed" | "stacked" | "start" |
Default | 'start' |
mode
Description | modeは、どのプラットフォームのスタイルを使用するかを決定します。 |
Attribute | mode |
Type | "ios" | "md" |
Default | undefined |
name
Description | フォームデータとともに送信されるコントロールの名前。 |
Attribute | name |
Type | string |
Default | this.inputId |
value
Description | Radioの値です。 |
Attribute | value |
Type | any |
Default | undefined |
Events
Name | Description |
---|---|
ionBlur | Radioボタンのフォーカスが外れたときに発行されます。 |
ionFocus | Radioボタンにフォーカスが当たったときに発行されます。 |
CSS Shadow Parts
Name | Description |
---|---|
container | Radioマークの入れ物です。 |
label | Radioを説明するラベルテキスト。 |
mark | チェックされた状態を示すために使用されるチェックマークまたはドットです。 |
CSS Custom Properties
Name | Description |
---|---|
--border-radius | Radioのボーダー半径 |
--border-radius | Radioのボーダー半径 |
--color | Radioのカラー |
--color | Radioのカラー |
--color-checked | チェックしたRadioの色 |
--color-checked | チェックしたRadioの色 |
--inner-border-radius | 内側のチェック付きRadioのボーダー半径 |
--inner-border-radius | 内側のチェック付きRadioのボーダー半径 |
Slots
Name | Description |
---|---|
`` | Radioに関連付けるラベルテキストです。"labelPlacement"プロパティを使用して、Radioに対するラベルの相対的な配置を制御します。 |