API
Component

RadioPC ($UI/system/components/justep/button/radioPC)

使用范围:UI2

Contents

component RadioPC ($UI/system/components/justep/button/radioPC) extends BindComponent

radioPC

Constructor Top

  RadioPC ()
  RadioPC ( 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 RadioPC ()

radioPC

public RadioPC ( options)

构造函数

Inherited from ViewComponent

	
		参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
	 

Parameters

options

参数选项

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

	
		基础样式: radio(必须),
		排列样式: radio-inline
	

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)

获取属性值

Parameters

String name

属性名称,取值范围:"disabled"、"label"、"value"、"checked"、"name"

Return Value

Object

public void set (json arg)

设置属性值

Parameters

json arg

属性值对
结构如下:

{ "disabled" : 禁用, "label" : 显示名 "value" : 等价于html中的value属性 "checked" : 是否选中 "name" : 组件name,等价于html中的name属性,相同name的Radio为一组,选中是互斥的 }

Return Value

void

public void val ()

给组件赋值或者取值

Return Value

void

Events Detail Top

public void onChange (RadioChangeEvent event)

[回调型事件]选中状态变化触发事件

Parameters

RadioChangeEvent event


结构如下:

{ "source" : 组件的js对象, "checked" : 选中状态, "value" : 对应的值 "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 }

Return Value

void