{field:'pervasive',title:'是否普算',width:90,formatter:hdl.easyUIComm.pervasiveFormatter,
editor:{
type:'combobox',
options:{
required: true,
url:contextPath+"/comm/pervasiveSelector.do?ALL=false",
panelWidth:120,
panelHeight:100,
valueField:'key',textField:'value',
onLoadSuccess: function () { //加载完成后,设置选中第一项
var data = $(this).combobox("getData");
if (data.length > 0) {
$(this).combobox('select', data[0].key);
}
}
}
}
}
editor:{
type:'combobox',
options:{
required: true,
url:contextPath+"/comm/pervasiveSelector.do?ALL=false",
panelWidth:120,
panelHeight:100,
valueField:'key',textField:'value',
onLoadSuccess: function () { //加载完成后,设置选中第一项
var data = $(this).combobox("getData");
if (data.length > 0) {
$(this).combobox('select', data[0].key);
}
}
}
}
}
本文详细介绍了易UI中组合框的配置参数及其使用方法。通过具体的字段设置,如是否普算的选择,展示了如何定制化的使用易UI组件。此外还涉及了如何通过URL加载数据源并设置下拉面板宽度和高度等内容。
3万+

被折叠的 条评论
为什么被折叠?



