【问题标题】:Filter in aggrid在 agggrid 中过滤
【发布时间】:2021-08-03 12:23:06
【问题描述】:

有没有办法在 agggrid 中获得像 Excel 一样的过滤器 -

【问题讨论】:

    标签: reactjs ag-grid ag-grid-react


    【解决方案1】:

    是的,我们可以选择像 excel 一样进行过滤。

    1、你应该购买企业版 2、过滤器有两个选项。一个是windows之类的excel,一个是mac之类的excel。

    const gridOptions = {
        columnDefs: [
            {
                field: 'animal',
                filter: 'agSetColumnFilter',
                filterParams: {
                    // can be 'windows' or 'mac'
                    excelMode: 'windows',
                },
            }
        ],
    
       // other grid options ...
    }
    

    您可以在文档中找到更多详细信息。

    【讨论】:

      【解决方案2】:

      是的,但您必须为企业版付费。

      https://www.ag-grid.com/react-grid/filter-set-excel-mode/

      【讨论】:

        猜你喜欢
        • 2019-02-06
        • 2021-06-19
        • 2020-09-21
        • 2022-10-14
        • 1970-01-01
        • 2012-03-22
        • 2017-11-05
        • 2016-03-01
        • 2015-04-14
        相关资源
        最近更新 更多