简体   繁体   English

在 ag-grid 过滤器中允许空格

[英]Allow blank spaces in ag-grid filter

I'm facing a problem with ag grid filter.我遇到了 ag 网格过滤器的问题。 I'm seeing that is ignoring the white spaces.我看到这是忽略空白。

Where can i set to the grid to allow blank spaces in the filter?我可以在哪里设置网格以允许过滤器中的空格? Do you know any trick?你知道什么诀窍吗? Which part of the grid i can set acceptEmptyValuesFilter or something like that??我可以设置网格的哪个部分 acceptEmptyValuesFilter 或类似的东西?

onTextChange() {
    this.gridOptions.api.setQuickFilter(mySearchTextBox);
  }

you can set empty value.您可以设置空值。

  onTextChange() {
        this.gridOptions.api.setQuickFilter(' ');
      }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM