文章标题
来源:互联网 发布:好看的古代小说知乎 编辑:程序博客网 时间:2024/06/05 09:36
extjs grid渲染列相同数据合并
renderer : function (value, meta, record, rowIndex, colIndex, store) {
var first = !rowIndex || store.getAt(rowIndex).get(‘practicepro’) !== store.getAt(rowIndex - 1).get(‘practicepro’);
var value=record.data.practicepro;
if(first){
var i=rowIndex+1,span=1;
while (i < store.getCount() && store.getAt(rowIndex).get(‘practicepro’) === store.getAt(i).get(‘practicepro’)) {
i++;
span++;
value=value+” “;
}
var rowHeight = 20, padding = 6,
height = (rowHeight * (i - rowIndex) - padding) + ‘px’;
meta.style = ‘height:’ + height + ‘;line-height:’ + height + ‘;’;
meta.tdAttr = ‘rowspan = ’ + span;
}
else{
meta.tdAttr=’style=”display:none;”’;
}
return first ? value : ”;
}
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 收集癖:Unity开源插件
- iOS之卡片模式设计和实现
- ios 圆形进度条
- angularjs如何打开modal
- Lua 函数 学习
- 文章标题
- iOS: FFmpeg的使用一
- 研究生的点点滴滴
- linux shell 传递带空格的数组
- linux下c语言生产者消费者问题
- java枚举类型enum的使用实例,以及java程序中常量有什么用?
- NSKeyedArchiver本地存储失败?
- jdk 和 adb 配置环境
- 可以学习的go开源项目