webwork 标签 ww:radio

Attributes

Name
Required
Default
Type
Description
listtrue Object/StringIterable source to populate from. If the list is a Map (key, value), the Map key will become the option "value" parameter and the Map value will become the option body.
listKeyfalse Object/StringProperty of list objects to get field value from
listValuefalse Object/StringProperty of list objects to get field content from
themefalse Object/StringThe theme (other than default) to use for rendering the element
templateDirfalse Object/StringThe template directory (other than default) to used to find the themes and hence the template.
templatefalse Object/StringThe template (other than default) to use for rendering the element
cssClassfalse Object/StringThe css class to use for element
cssStylefalse Object/StringThe css style definitions for element ro use
titlefalse Object/StringSet the html title attribute on rendered html element
disabledfalse Object/StringSet the html disabled attribute on rendered html element
labelfalse Object/StringLabel expression used for rendering a element specific label
labelPositionfalseleftObject/Stringdeprecated.
labelpositionfalse Object/Stringdefine label position of form element (top/left)
requiredpositionfalse Object/Stringdefine required position of required form element (left|right)
namefalse Object/StringThe name to set for element
requiredfalsefalseBooleanIf set to true, the rendered element will indicate that input is required
tabindexfalse Object/StringSet the html tabindex attribute on rendered html element
valuefalse Object/StringPreset the value of input element.
onclickfalse Object/StringSet the html onclick attribute on rendered html element
ondblclickfalse Object/StringSet the html ondblclick attribute on rendered html element
onmousedownfalse Object/StringSet the html onmousedown attribute on rendered html element
onmouseupfalse Object/StringSet the html onmouseup attribute on rendered html element
onmouseoverfalse Object/StringSet the html onmouseover attribute on rendered html element
onmousemovefalse Object/StringSet the html onmousemove attribute on rendered html element
onmouseoutfalse Object/StringSet the html onmouseout attribute on rendered html element
onfocusfalse Object/StringSet the html onfocus attribute on rendered html element
onblurfalse Object/StringSet the html onblur attribute on rendered html element
onkeypressfalse Object/StringSet the html onkeypress attribute on rendered html element
onkeydownfalse Object/StringSet the html onkeydown attribute on rendered html element
onkeyupfalse Object/StringSet the html onkeyup attribute on rendered html element
onselectfalse Object/StringSet the html onselect attribute on rendered html element
onchangefalse Object/StringSet the html onchange attribute on rendered html element
accesskeyfalse Object/StringSet the html accesskey attribute on rendered html ekement
tooltipfalseStringSet the tooltip of this particular component
tooltipConfigfalseStringSet the tooltip configuration
idfalse Object/Stringid for referencing element. For UI and form tags it will be used as HTML id attribute



demo:
<ww:action name="GenderMap" id="genders"/> <ww:radio label="Gender" name="male" list="#genders.genders"/>

<ww:radio name="sex" value="%{0}" cssClass="radio" list="#{0:'保密',1:'男  ',2:'女  '}"/>

注意value设值得方式

转载于:https://www.cnblogs.com/wgjcn/archive/2009/10/14/1583190.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值