【发布时间】:2015-04-22 22:00:21
【问题描述】:
首先考虑一个宽度为 400 像素的网格,它有四列。所有列的宽度均为 100 像素。列之间的 Tab 键按预期工作。
.gridStyle {
border: 1px solid rgb(212,212,212);
width: 400px;
height: 300px
}
现在类似的网格具有相同的 400 像素宽度,同样有四列。但是这次每列都有 300px 的宽度。现在列之间的制表符不起作用。它仅在屏幕上可见的列中跳出。
$scope.columns = [
{
"field": 'Classification',
displayName: 'Classification',
width: '300 px',
cellTemplate: link
},
{
"field": 'name',
displayName: 'Name',
width: '300 px'
},
{
"field": 'age',
displayName: 'Age',
width: '300 px'
},
{
"field": 'Classification',
displayName: 'Classification',
width: '300 px',
cellTemplate: link
}
];
查看两个 Plunk 以比较行为。
我不确定为什么会这样。我在 ng-grid 中显示了近 20 列,并希望实现在列之间进行制表符的功能。但不能。有人可以帮我解决这个问题吗?
【问题讨论】:
标签: javascript jquery angularjs ng-grid