<< Click to Display Table of Contents >> Filter List Component Script |
![]() ![]() ![]() |
Functions |
Instructions |
Examples |
---|---|---|
getCol |
Get the field information of the current list filter component binding |
var col1=FilterList1.binding.getCol();//No parameters, both FilterList1 and FilterList2 text components require bound data FilterList2.binding.setCol(col1); //Set the data bound to FilterList2 to col1 |
setCol |
Filter component binding fields for the current list |
var col=new BCol("product",2,true); var col1=new DimCol(col); FilterList1.binding.setCol(col1); |
colNumber |
Set the number of display columns of the list filter component |
FilterList1.colNumber=2; |
dropDown |
The following shows the form of pull list |
FilterList1.dropDown=true; |
dropRow |
The number of rows displayed in the form of a drop-down list |
FilterList1.dropRow=3; |
SeletedObjects |
Set the checked data |
FilterList1.setSelectedObjects(["1","5"],INTEGER); |
single |
Switch to single filter |
FilterList1.single=true; |
sortType |
Sort |
FilterList1.sortType=SORT_DESC; |
submitOnChange |
Submit if changed |
FilterList1.submitOnChange=false; |
ignoreNull |
Whether to ignore null values |
FilterList1.ignoreNull=true; |
selectOnTop |
Selected value top |
FilterList1.selectOnTop=true; |
❖Sort type
Sort type |
Corresponding constants |
Instructions |
---|---|---|
SORT_NONE |
0 |
No sort |
SORT_ASC |
1 |
Ascending |
SORT_DESC |
2 |
Descending |
SORT_VALUE |
4 |
Sort by value, this type applies tofilter list, listbox, combobox components |