有什么办法创建子头(主标题使用合并单元格)与ngGrid在AngularJS [英] Is there any way to create sub headers (using colspan in main headers)with ngGrid in AngularJS

查看:298
本文介绍了有什么办法创建子头(主标题使用合并单元格)与ngGrid在AngularJS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来AngularJS现在用NG-grid.But工作,我不能创建多发标头,主标题和次headers.I现在用AngulaJS版本1.2.12,jQuery的版本2.0.3和NG-电网2.0 .7.I想创建headers.Is有像AngularJS合并单元格的任何选项网格?请帮me.Thanking你在期待。

I am new to AngularJS and now working with ng-grid.But I can't create mutiple headers as main header and sub headers.I am using AngulaJS version 1.2.12 , jQuery version 2.0.3 and ng-grid 2.0.7.I wanna create a grid with headers.Is there any option like colspan in AngularJS?Please help me.Thanking you in anticipation.

推荐答案

要实现山坳跨度,你可以使用属性的 categoryDisplayName ,即可在这些列的columnDefs。如果列是独立的,不属于任何一类,不指定此属性。

To achieve the col spans, you can make use of the attribute categoryDisplayName to those columns in your columnDefs. If column is independent and don't belong to any category, dont specify this attribute.

如果显示彼此相邻,并具有相同的categoryDisplayName两个或多个列,该类别横跨所有这些列

If two or more columns are shown next to each other and having the same categoryDisplayName, the category spans across all such columns.

希望这是非常有用的。

这篇关于有什么办法创建子头(主标题使用合并单元格)与ngGrid在AngularJS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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