| << Click to Display Table of Contents >> 列表过滤组件的脚本函数 |     | 
| 函数 | 说明 | 举例 | 
|---|---|---|
| getCol | 获得当前列表过滤组件绑定的字段信息 | var col1=FilterList1.binding.getCol(); //无参数,FilterList1和FilterList2两个文本组件均需要已绑定数据 FilterList2.binding.setCol(col1); //设置FilterList2绑定的数据为col1 | 
| setCol | 给当前列表过滤组件绑定字段 | var col=new BCol("product",2,true); var col1=new DimCol(col); FilterList1.binding.setCol(col1); | 
| colNumber | 设定列表过滤组件的显示列数 | FilterList1.colNumber=2; | 
| dropDown | 以下拉列表的形式展现 | FilterList1.dropDown=true; | 
| dropRow | 以下拉列表的形式展现时的行数设置 | FilterList1.dropRow=3; | 
| SeletedObjects | 设定勾选的数据 | FilterList1.setSelectedObjects(["1","5"],INTEGER); | 
| single | 转为单过滤器 | FilterList1.single=true; | 
| sortType | 排序 | FilterList1.sortType=SORT_DESC; | 
| submitOnChange | 是否改变时提交 | FilterList1.submitOnChange=false; | 
| ignoreNull | 是否忽略空值 | FilterList1.ignoreNull=true; | 
| selectOnTop | 选中值置顶 | FilterList1.selectOnTop=true; | 
❖排序类型
| 排序类型 | 相应的常量 | 说明 | 
|---|---|---|
| SORT_NONE | 0 | 无序 | 
| SORT_ASC | 1 | 升序 | 
| SORT_DESC | 2 | 降序 | 
| SORT_VALUE | 4 | 按值进行排序,此类型适用于列表过滤、列表参数、下拉参数组件 |