API
Component

RadioGroup ($UI/system/components/justep/select/radioGroup)

使用范围:UI2

Contents

component RadioGroup ($UI/system/components/justep/select/radioGroup) extends BindComponent

<b>使用场景</b>:绑定选项数据集后,选择选项值、选项名对应的列即可生成单选组;绑定数据列后单选组的选择结果即可与数据集中数据关联; ## <b>文档链接</b>:#http://docs.newdao.net/dan-xuan-zu-and-dan-xuan-zu-zu-he.html#

Constructor Top

  RadioGroup ()
  RadioGroup ( options)

Properties Top

boolean disabled

禁用

string itemClass

项上增加的class

string itemStyle

项上增加的样式

Attributes Top

string bind-itemset

显示项的数据绑定,通常指向Data组件

string bind-itemsetLabel

itemset中显示的列

string bind-itemsetValue

itemset中表示数据的列

string bind-ref

引用

string class

组件class

boolean disabled

禁用

string xid

组件标示

Methods Top

Object get (String name)
void set (json arg)
void val ()

Events Top

void onChange (ChangeEvent event)

Constructor details Top

public RadioGroup ()

<b>使用场景</b>:绑定选项数据集后,选择选项值、选项名对应的列即可生成单选组;绑定数据列后单选组的选择结果即可与数据集中数据关联; ## <b>文档链接</b>:#http://docs.newdao.net/dan-xuan-zu-and-dan-xuan-zu-zu-he.html#

public RadioGroup ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Properties Detail Top

public boolean disabled

禁用

public string itemClass

项上增加的class

public string itemStyle

项上增加的样式

Attributes Detail Top

public string bind-itemset

显示项的数据绑定,通常指向Data组件

public string bind-itemsetLabel

itemset中显示的列

public string bind-itemsetValue

itemset中表示数据的列

public string bind-ref

引用

public string class

组件class

	
		基础样式: x-radio-group(必须),
		尺寸样式: x-radio-group-lg、x-radio-group-sm、x-radio-group-xs
		排列方式:x-radio-group-vertical
	

public boolean disabled

禁用

public string xid

组件标示

Methods Detail Top

public Object get (String name)

获取属性值

Parameters

String name

属性名称,取值范围:"disabled","itemStyle","itemClass"

Return Value

Object

public void set (json arg)

设置属性值

Parameters

json arg

属性值对
结构如下:

{ "disabled" : {boolean} 禁用, "itemStyle" : {string} 项上增加的样式, "itemClass" : {string} 项上增加的class, }

Return Value

void

public void val ()

给组件赋值或者取值

Return Value

void

Events Detail Top

public void onChange (ChangeEvent event)

[回调型事件]值修改事件

Parameters

ChangeEvent event


结构如下:

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

Return Value

void