ion-radio-group
ラジオ・グループは、ラジオのグループのためのコンテナです。ラジオグループは、ユーザーがラジオボタンを1つだけ選択できるようにします。ラジオ・グループに属するラジオ・ボタンを1つチェックすると、同じグループ内で以前にチェックされたラジオ・ボタンのチェックは解除されます。ラジオ・グループの使用例については、radioのドキュメントを参照してください。
Interfaces
RadioGroupChangeEventDetail
interfaceRadioGroupChangeEventDetail<T=any>{
value:T;
}
RadioGroupCustomEvent
必須ではありませんが、このコンポーネントから発行される Ionic イベントでより強く型付けを行うために、CustomEvent インターフェースの代わりにこのインターフェースを使用することが可能です。
interfaceRadioGroupCustomEvent<T=any>extendsCustomEvent{
detail: RadioGroupChangeEventDetail<T>;
target: HTMLIonRadioGroupElement;
}
プロパティ
allowEmptySelection
Description
trueの場合、Radioを非選択にすることができる。 Attribute
allow-empty-selection Type
boolean Default
falsecompareWith
Description このプロパティを使用すると、開発者は、ion-radio-group で選択されたオプションを決定するときにオブジェクトを比較するためのカスタム関数またはプロパティ名を指定できます。指定しない場合、デフォルトの動作では、比較に厳密な等式 (===) が使用されます。
Attribute
compare-with Type
((currentValue: any, compareValue: any) => boolean) | null | string | undefined Default
undefinederrorText
Description ラジオグループ上部に表示するエラーテキスト。
Attribute
error-text Type
string | undefined Default
undefinedhelperText
Description ラジオグループ上部に表示するヘルパーテキスト。
Attribute
helper-text Type
string | undefined Default
undefinedname
Description フォームデータとともに送信されるコントロールの名前。
Attribute
name Type
string Default
this.inputIdvalue
Description 無線グループの値です。
Attribute
value Type
any Default
undefinedイベント
| Name | Description | Bubbles |
|---|---|---|
ionChange | 値が変更されたときに発行される。 プログラムで value プロパティを設定した場合は、このイベントは発生しない。 | true |
メソッド
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.
Slots
No slots available for this component.