mirror of
https://github.com/nasa/openmct.git
synced 2025-05-06 10:38:23 +00:00
[Table] Track by index, save the elements
This commit is contained in:
parent
34dc457aff
commit
2fa567b98b
@ -49,7 +49,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat-start="visibleRow in visibleRows track by visibleRow.rowIndex"
|
<tr ng-repeat-start="visibleRow in visibleRows track by $index"
|
||||||
ng-if="visibleRow.rowIndex === toiRowIndex"
|
ng-if="visibleRow.rowIndex === toiRowIndex"
|
||||||
ng-style="{ top: visibleRow.offsetY + 'px' }"
|
ng-style="{ top: visibleRow.offsetY + 'px' }"
|
||||||
class="l-toi-tablerow">
|
class="l-toi-tablerow">
|
||||||
@ -60,9 +60,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr ng-repeat-end
|
<tr ng-repeat-end
|
||||||
ng-style="{ top: visibleRow.offsetY + 'px' }"
|
ng-style="{ top: visibleRow.offsetY + 'px' }"
|
||||||
ng-click="table.onRowClick($event, visibleRow.rowIndex) ">
|
ng-click="table.onRowClick($event, visibleRow.rowIndex)">
|
||||||
<td ng-repeat="header in displayHeaders"
|
<td ng-repeat="header in displayHeaders"
|
||||||
ng-style=" {
|
ng-style="{
|
||||||
width: columnWidths[$index] + 'px',
|
width: columnWidths[$index] + 'px',
|
||||||
'max-width': columnWidths[$index] + 'px',
|
'max-width': columnWidths[$index] + 'px',
|
||||||
}"
|
}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user