Is it possible to open and close a custom floating filter in ag-grid?

旧巷老猫 提交于 2021-02-08 10:21:10

问题


Is it possible to open and close or to show and hide custom floating filters in ag-grid, for example if a button was clicked?
If you initialize the table, only the header should be visible. Then after a specific button was clicked, also the floating filters below the header should be visible.


回答1:


Try this:

gridOptions.floatingFilter = !gridOptions.floatingFilter;
gridOptions.api.refreshHeader();


来源:https://stackoverflow.com/questions/46956579/is-it-possible-to-open-and-close-a-custom-floating-filter-in-ag-grid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!