Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在我Fork的版本上増加了多行表头的优化 #23

Open
limodou opened this issue Aug 25, 2013 · 0 comments
Open

在我Fork的版本上増加了多行表头的优化 #23

limodou opened this issue Aug 25, 2013 · 0 comments

Comments

@limodou
Copy link
Contributor

limodou commented Aug 25, 2013

limodou@3377935

为了更方便定义多行表头,我采用了jquery.easyui的定义形式,它是由多个[]组成。原来mmGrid的定义是采用cols:[]的定义方式。采用多行[]定义的方式,要求在相应的单元格处定义相应的colspan和rowspan,如果不定义缺省为1。基本上和定义表格差不多。为了实现这种定义,改动代码挺多。同时为了减少表头的重复计算,在初始化时对表头只计算一次。

examples也进行了修改。目前如果只有一行表头时,可以兼容以前的定义。同时我fork的仓库中还有treeGrid的示例,见examples2.html。

供参考。

如果mmGrid再实现固定列,我觉得这个表格的功能已经很完善了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant