API
Component

CitySelect ($UI/system/components/justep/distpicker/citySelect)

使用范围:UI2

Contents

component CitySelect ($UI/system/components/justep/distpicker/citySelect) extends BindComponent

citySelect,市/区选择

Constructor Top

  CitySelect ()
  CitySelect ( options)

Properties Top

boolean disabled

禁用

Attributes Top

string bind-provinceRef

省、直辖市引用,用于控制市下拉部分数据

string bind-ref

引用

string class

组件class

boolean disabled

禁用

string optionsCaption

无值时的提示信息

string xid

组件标示

Methods Top

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

Events Top

void onChange (ChangeEvent event)

Constructor details Top

public CitySelect ()

citySelect,市/区选择

public CitySelect ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Properties Detail Top

public boolean disabled

禁用

Attributes Detail Top

public string bind-provinceRef

省、直辖市引用,用于控制市下拉部分数据

public string bind-ref

引用

public string class

组件class

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

public boolean disabled

禁用

public string optionsCaption

无值时的提示信息

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

Events Detail Top

public void onChange (ChangeEvent event)

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

Parameters

ChangeEvent event


结构如下:

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

Return Value

void