简体   繁体   中英

How to filter the columns in ag-grid table using reactjs?

如何使用reactJs列ID删除ag-grid表中的列?

Use setColumnVisible(colKey, visible) in columnApi . It Sets the visibility of a column. colKey can be the column id or Column object. visible is a boolean, true to show, false to hide. I don't think you can remove a column, but you can hide or show it.

Refer documentation here - https://www.ag-grid.com/javascript-grid-column-api/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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