如何增加 ag-grid 中自定义过滤器列表的宽度?
How to increase the width of custom filter list in ag-grid?
如何增加ag-grid中自定义过滤器列表的宽度?
filterParams: {
newRowsAction: 'keep',
suppressMiniFilter: true,
**filterWidth: 500,**
values: function(params) {
setTimeout(function() {
params.success([
// code
]),
}
尝试在 CSS 文件中使用 ng-deep 来操作过滤器容器样式:
:host ::ng-deep .ag-filter-body-wrapper
{
width: 600px;
}
希望对您有所帮助。
如何增加ag-grid中自定义过滤器列表的宽度?
filterParams: {
newRowsAction: 'keep',
suppressMiniFilter: true,
**filterWidth: 500,**
values: function(params) {
setTimeout(function() {
params.success([
// code
]),
}
尝试在 CSS 文件中使用 ng-deep 来操作过滤器容器样式:
:host ::ng-deep .ag-filter-body-wrapper
{
width: 600px;
}
希望对您有所帮助。