属性名称 属性描述
idField 后台json传数据时对应的value字段属性名称,默认是id
textField 后台json传数据时对应的text字段属性名称,默认是text
method post/get
url 通过url获取下拉数据源
data 固定的下拉数据源
keyHandler 键盘事件
panelWidth 下拉框弹出宽度,默认自适应
panelHeight 下拉框弹出高度
multiple 是否可以多选,默认单选
onBeforeLoad 数据加载前函数
onLoadSuccess 加载成功回调
onLoadError 加载失败回调
onSelect 选择事件,data-define="onSelect:functionName"
onUnselect 取消选择事件,data-define="onUnselect:functionName"
其它 其它未描述属性请参考combobox和tree属性及方法
方法名称 方法描述
loadData 获取下拉数据源,$('#combotreeId').combotree('loadData',combotreeData)
setValues 设置选中的值,$('#combotreeId').combotree('setValues','1,2')
setValue 设置选中的值,$('#combotreeId').combotree('setValue','1')
clear 清空选中的值
reset 重置
tree 获取下拉树的树对象,此对象跟常规树一样,$('#combotreeId').combotree('tree')
disable 设置不可用$('#combotreeId').combotree('disable');
enable 设置可用$('#combotreeId').combotree('enable');