API
Component

Select ($UI/system/components/justep/select/select)

使用范围:UI2

Contents

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

<b>使用场景</b>:绑定下拉数据集后,选择下拉数据值、显示名对应的列即可生成下拉列表;绑定数据列后下拉列表的选择结果即可与数据集中数据关联; ## <b>文档链接</b>:#http://docs.newdao.net/xia-la-lie-biao-and-xia-la-lie-biao-zu-he.html#

Constructor Top

  Select ()
  Select ( options)

Properties Top

boolean disabled

禁用

Attributes Top

string bind-labelRef

显示名引用

string bind-options

下拉部分options的bind

string bind-optionsCaption

无值时的提示信息

string bind-optionsLabel

options中的显示列

string bind-optionsValue

options中的值列

string bind-ref

引用

string class

组件class

boolean disabled

禁用

boolean optionsAutoLoad

自动加载options数据

string xid

组件标示

Methods Top

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

Events Top

void onChange (ChangeEvent event)

Constructor details Top

public Select ()

<b>使用场景</b>:绑定下拉数据集后,选择下拉数据值、显示名对应的列即可生成下拉列表;绑定数据列后下拉列表的选择结果即可与数据集中数据关联; ## <b>文档链接</b>:#http://docs.newdao.net/xia-la-lie-biao-and-xia-la-lie-biao-zu-he.html#

public Select ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Properties Detail Top

public boolean disabled

禁用

Attributes Detail Top

public string bind-labelRef

显示名引用

public string bind-options

下拉部分options的bind

public string bind-optionsCaption

无值时的提示信息

public string bind-optionsLabel

options中的显示列

public string bind-optionsValue

options中的值列

public string bind-ref

引用

public string class

组件class

	
		基础样式: form-control(必须),
		尺寸样式: input-lg、input-sm
	

public boolean disabled

禁用

public boolean optionsAutoLoad

自动加载options数据

public string xid

组件标示

Methods Detail Top

public Object get (String name)

获取属性值

Parameters

String name

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

Return Value

Object

public void set (json arg)

设置属性值

Parameters

json arg

属性值对
结构如下:

{ "disabled" : {boolean} 禁用, }

Return Value

void

public void val ()

给select赋值或者取值

Return Value

void

Events Detail Top

public void onChange (ChangeEvent event)

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

Parameters

ChangeEvent event


结构如下:

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

Return Value

void