срабатывает после любого изменения в компоненте
config | any | source of change |
{ view:"datatable", id:"dtable", data:grid_data },
{
view:"filter",
data:grid_data,
field:"year", // колонка с числами
on:{
onChange: function(config){
const filter = this.getFilterFunction();
$$("dtable").filter(obj => filter(obj));
}
}
}
The config parameter can have the following values:
Also, you can get a custom value as the config parameter. To do that call the setValue/setValues method passing your value as the last argument:
webix.ui({
view:"filter",
// ..config
on:{
onChange: function(config){
// config is {yourProperty: "yourValue"}
}
}
});
// onChange event will receive object as the last parameter
$$("$filter1").setValue(newValue, {yourProperty: "yourValue"});