setCellFilter

creates a select filter

void setCellFilter(number rowId,number columnId,object filterObject, [string page] );
rowId
numberthe row id columnId
numberthe column id filterObject
objectfilter object pagestringoptional, the name of the sheet

Example

const values = {/* your custom values */}
// an array of options
$$("ss1").setCellFilter(1, 2, {
    options: ["", "Europe", "Asia", "America"],
    mode: "text",
    value: values,
    lastRow: 3
}, "Sheet1");

Related samples

Details

The filter object can have the following properties:

It is possible to specify a range of cells references the values of which will be filtered or an array of filter options as a third parameter instead of the filter object:

$$("ssheet").setCellFilter(2,1, ["", "Europe", "Asia", "America"] );
 
// or
$$("ssheet").setCellFilter(2,2, "B3:B7");

You can pass null as a third parameter. In this case the filter will be removed from the cell.

See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix javascript web framework and page of web based spreadsheet product.