Filter Tree Component Script

<< Click to Display Table of Contents >>

Current:  Script > Yonghong Script Object Reference List > Component Level Functions 

Filter Tree Component Script

Previous pageReturn to chapter overviewNext page

Functions

Instructions

Examples

getCols

Get the field information of the current tree state filter component binding

var a=FilterTree1.binding.getCols();

setCols

Bind fields to the current tree filter component

var col=new BCol("product",2,true);

var col1=new DimCol(col);

var col2=new BCol("product_type",2,true);

var col3=new DimCol(col2);

var arr=[col1,col3]

FilterTree1.binding.setCols(arr);

dropDown

The following shows the form of pull list

FilterTree1.dropDown=true;

dropRow

The number of rows to be displayed in the form of the following pull list

FilterTree1.dropRow=3;

SeletedObjects

Set the checked data

var sel = [];

sel.push(["Decaf"]);

sel.push(["Regular", "Small Market", "East"]);

FilterTree1.setSelectedObjects(sel);

sortType

Sort

FilterTree1.sortType=SORT_DESC;

submitOnChange

Submit if changed

FilterTree1.submitOnChange=false;