checkBox
目的 Purpose
Generates a checkbox form field. All the usual HTML elements apply.使用例 Examples
<g:checkBox name="myCheckbox" value="${true}" />詳細 Description
属性 Attributes
name- The name of the checkboxvalue(optional) - The value of the checkboxchecked(optional) - Expression if evaluates totruesets to checkbox to checked
checkBox tag typically only requires the name and value attributes and will infer whether the checkbox should be checked from the value. The checked attribute can be used to override this behaviour for fine-grained control.
