首先考虑宽度为400px的网格,该网格有四列。所有列的宽度都是100px。列之间的Tabbing按预期工作。Angular JS - ng grid tab out issue
.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
}
];
看到两个Plunks进行比较的行为。
我不知道为什么会发生这种情况。我在ng-grid中显示了近20列,并且想要实现在列之间选项卡的功能。但不能。有人可以帮我解决这个问题吗?