在 ag-grid 中隐藏列名? [英] Hide Column Names in ag-grid?

查看:31
本文介绍了在 ag-grid 中隐藏列名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以隐藏 ag-grid 中的第一行(列定义)?我只想显示表格中的数据并排除列标题.

Is it possible to hide the first row ( the column definitions) in ag-grid? I just want to display the data in the table and excluding the column headings.

推荐答案

您可以在组件上添加 headerHeight 属性并将其设置为 0 以隐藏标题.像这样:

You can add headerHeight property on your component and set this to 0 which will hide the headers. Like so:

<ag-grid-angular [gridOptions]="gridOptions"
    [headerHeight]="0">
 </ag-grid-angular>

看看这个 StackBlitz.

Take a look at this StackBlitz.

这篇关于在 ag-grid 中隐藏列名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆