Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ラジオ・ボタン・ウェブレットは、1つのラジオ・ボタンを表示します。これは、<input The radio button weblet displays a single radio button. It broadly corresponds to the <input type="radio"> HTML element.

Radio buttons are typically grouped as two or more radio buttons for mutually exclusive selection. In other words, you can choose only one of several options—like a multiple-choice question. It looks like this:

Image Removed

but is typically grouped to look more like this:

Image Removed

You may choose to use this weblet instead of the std_radbuttons weblet which is implemented as a group of radio buttons, if you want to store the resulting selections in different fields.

HTMLエレメントと概ね同じです。

通常ラジオ・ボタンは、2つ以上のラジオ・ボタンがグループ化され、排他的な選択を行います。つまり択一式の問題のように、複数の選択肢から1つのみ選ぶことが可能です。例えば次のようなものです。

Image Added

また、通常は以下のようにグループ化されます。

Image Added

異なるフィールドに選択結果を保管したい場合、ラジオ・ボタンをグループとして組込むstd_radbuttonsウェブレットの代わりにこのウェブレットを使用できます。

Info

ラジオ・ボタン・ウェブレットに、クリック時に別のWebroutineに移動できるon_click_wrnameなどのプロパティが含まれる場合、ラジオ・ボタンのクリックからアクションを開始させるのは、あまり良いユーザー・インターフェース・デザインとは言えません。これを行うには、プッシュ・ボタンやメニュー・アイテム、アンカー(ハイパーリンク)などのデバイスを使用してください。

Info
The radio button weblet includes properties such as on_click_wrname that allow it to navigate to another webroutine when clicked It is not good user-interface design to initiate actions on the click of a radio button Devices such as a push button, menu item or anchor (hyperlink) should be used to accomplish this.