angular-ui-grid merge cells in column(合并列上的单元格)

来源:互联网 发布:java方法中布尔型变量 编辑:程序博客网 时间:2024/06/05 02:53


问题:

I would like to pull a feature request that you implement a rowspan over 2 or more rows.

This feature greatly help me improving my cell templates when I have a double lessons to prepare!

It should be possible to decide during runtime wether to render a row with a single cell or a merge cell/cells depending on a viewmodels property.

rowspan



摘自angular-ui-grid的issue845

包括issue1464 和 issue259 都有提出这个问题


插件作者在issue1464中提到的解决方案是Custom template(自定义模板)

This is now included in the templates tutorial: http://ui-grid.info/docs/#/tutorial/317_custom_templates.

Merging all cells in a row is reasonably straightforward, merging just some cells would be somewhat more complex, but still possible through that same mechanism.



issue1464中热心网友给出的实例是:

http://plnkr.co/edit/Ze6axa9GljdTpEcfYkIb?p=preview







原创粉丝点击