网格浮动过滤器垫选择带有多个选项的下拉列表复选框未获得过滤结果

时间:2020-04-30 06:30:48

标签: angular checkbox filter dropdown

基本上,在当前值中,我们以数组的形式获得了多个选项,但无法对其进行过滤。

this.params.onFloatingFilterChanged({ model: this.buildModel(this.currentValue) });
this.params.parentFilterInstance( (instance) => {
  if (typeof this.currentValue === 'object') {
    if (this.currentValue.length > 0) {
      **instance.onFloatingFilterChanged('equals', this.currentValue);//this.currentValue=['enable','disable']**
    } else {
      instance.onFloatingFilterChanged('equals', '');
    }
  } else {
    instance.onFloatingFilterChanged('equals', this.currentValue);
  }
});

0 个答案:

没有答案