使用范围:UI2
Contents
component Radio ($UI/system/components/justep/button/radio) extends BindComponent
Constructor Top
Radio () | |||
Radio ( options) |
Properties Top
boolean |
checked
是否选中 | ||
boolean |
disabled
禁用 | ||
string |
label
显示名 | ||
string |
name
组件name,等价于html中的name属性,相同name的Radio为一组,选中是互斥的 | ||
string |
value
等价于html中的value属性 |
Attributes Top
string |
bind-ref
数据感知的绑定表达式 | ||
boolean |
checked
是否选中 | ||
string |
checkedValue
选中后的value,当bind-ref的值为checkedValue时checked=true | ||
string |
class
组件class | ||
boolean |
disabled
禁用 | ||
string |
label
显示名 | ||
string |
name
组件name,等价于html中的name属性,相同name的Radio为一组,选中是互斥的 | ||
string |
value
等价于html中的value属性 | ||
string |
xid
组件标示 |
Methods Top
Object | get (String name) | |
void | set (json arg) | |
void | val () |
Events Top
void | onChange (RadioChangeEvent event) |
Constructor details
Top
public
Radio
()
单选按钮
##
文档链接:#http://docs.newdao.net/appbiao-dan-zu-jian-bu-chong/dan-xuan.html#
public
Radio
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Radio
()
public
Radio
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Properties Detail Top
public
boolean
checked
是否选中
public
boolean
disabled
禁用
public
string
label
显示名
public
string
name
组件name,等价于html中的name属性,相同name的Radio为一组,选中是互斥的
public
string
value
等价于html中的value属性
Attributes Detail Top
public
string
bind-ref
数据感知的绑定表达式
public
boolean
checked
是否选中
public
string
checkedValue
选中后的value,当bind-ref的值为checkedValue时checked=true
public
string
class
组件class
基础样式: x-radio(必须), 尺寸样式: x-radio-lg、x-radio-sm、x-radio-xs
public
boolean
disabled
禁用
public
string
label
显示名
public
string
name
组件name,等价于html中的name属性,相同name的Radio为一组,选中是互斥的
public
string
value
等价于html中的value属性
public
string
xid
组件标示
Methods Detail Top
public
Object
get
(String name)
获取属性值
public
void
set
(json arg)
设置属性值
public
void
val
()
给组件赋值或者取值
Events Detail Top
[回调型事件]选中状态变化触发事件