(Quick Reference)

radio

目的
Purpose

Generates a radio button

使用例
Examples

<g:radio name="myGroup" value="1"/>
<g:radio name="myGroup" value="2" checked="true"/>

results in:

<input type="radio" name="myGroup" value="1" />
<input type="radio" name="myGroup" checked="checked" value="2" />

詳細
Description

属性

Attributes
  • value (required) - The value of the radio button
  • name (required) - The name of the radio button
  • checked (optional) - boolean to indicate that the radio button should be checked

ソース
Source

{source:tag=FormTagLib.radio} {source}