Ag-grid的“内置”过滤器选项是什么?

时间:2019-04-08 20:45:12

标签: ag-grid

我在下面的文档中看到对“空”内置过滤器的引用。在哪里可以找到所有内置过滤器选项的文档?

https://www.ag-grid.com/javascript-grid-filtering/#adding-custom-filter-options

1 个答案:

答案 0 :(得分:1)

我在文档中也找不到它。
 但是,您可以在上查看GitHubBaseFilter的定义,并获取所有内置过滤器。

export abstract class  BaseFilter<T, P extends IFilterParams, M> extends Component implements IFilterComp {

  public static EMPTY = 'empty';
  public static EQUALS = 'equals';
  public static NOT_EQUAL = 'notEqual';
  public static LESS_THAN = 'lessThan';
  public static LESS_THAN_OR_EQUAL = 'lessThanOrEqual';
  public static GREATER_THAN = 'greaterThan';
  public static GREATER_THAN_OR_EQUAL = 'greaterThanOrEqual';
  public static IN_RANGE = 'inRange';

  public static CONTAINS = 'contains'; //1;
  public static NOT_CONTAINS = 'notContains'; //1;
  public static STARTS_WITH = 'startsWith'; //4;
  public static ENDS_WITH = 'endsWith'; //5;
  // .....
}