我想让过滤器图标在 Ag-grid 中永久可见。当前的行为是,仅当我将鼠标悬停在列标题上时,列中的过滤器图标才可见。
这是我正在使用的列定义的示例。
this.ColumnDefs=[{"headerName":"Interface","field":"interfaceName",sortingOrder: ['asc','desc', 'null'],width:120,cellStyle:{'text-align': "left"},unSortIcon: true},
{"headerName":"Status","field":"status",sortingOrder: ['asc','desc', 'null'],width:120,cellStyle:{'text-align': "left"},unSortIcon: true},
{"headerName":"Runtime","field":"lastDate",sortingOrder: ['asc','desc', 'null'],width:150,cellStyle:{'text-align': "left"},unSortIcon: true}]
我怎样才能达到这个结果?
最佳答案
正确答案在这里设置suppressMenuHide
在 gridOptions
或直接在 HTML [suppressMenuHide]="true"
上
suppressMenuHide Set to true to always show the column menu button, rather than only showing when the mouse is over the column header.
关于javascript - 如何使搜索图标在 ag-grid 的列中永久可见?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55449240/