primefaces global filter without the column filters

后端 未结 2 408
我寻月下人不归
我寻月下人不归 2021-01-01 23:41

I\'m working on the example mentioned in primefaces showcase. I am trying to create a global filter for the datatable.
Currently the table looks like this:

相关标签:
2条回答
  • 2021-01-02 00:29

    or you can just put:

    .ui-column-filter{
         display: none !important;
    }
    

    in your .css to hide all column filters

    0 讨论(0)
  • 2021-01-02 00:32

    Make sure you have the filterBy="#{myRowVar.sonmeField}" in every p:column (because the global filter needs it)

    And also add the filterStyle="display:none" in every p:column (adding of filterStyle="display:none" will make it not visible...)

    0 讨论(0)
提交回复
热议问题