我们如何配置ant设计表组件的Header? [英] How can we configure the Header of ant design table component?

查看:23
本文介绍了我们如何配置ant设计表组件的Header?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有需要在表格标题上显示隐藏/显示"列功能的要求,并且我们希望在 ant 设计中为表格标题提供不同的颜色.任何人都可以帮助我我们如何做到这一点?我没有找到任何控件来执行此操作,因为标题呈现完全是组件内部的.

We have requirement where we need to show 'Hide/Show' columns feature on the header of table and also we want to provide different color to the header of table in ant design. Can anyone help me how can we do this? I did not find any control to do it as header rendering is completely internal to component.

推荐答案

你可以使用 }> 属性与普通 CSS 结合.

You can use the <Table.Column title={<...any react node...>}> attribute in combination with ordinary CSS.

这篇关于我们如何配置ant设计表组件的Header?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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