【发布时间】:2017-09-25 05:47:49
【问题描述】:
我的 ag-grid 数组有问题,我有这个数组:
<div style="width: 100%;">
<ag-grid-angular #agGrid style="width: 100%; height: 200px;" class="ag-fresh"
[gridOptions]="gridOptions"
[rowData]="rowData"
[columnDefs]="columnDefs"
enableColResize
rowSelection="multiple"
(columnResized)="onColumnEvent($event)"
(columnPinnedCountChanged)="onColumnEvent($event)">
</ag-grid-angular>
</div>
我有两个按钮:
<div class="bouton" placement="top" ngbTooltip="Déplacer instruction vers le haut">
<button (click)="moveUp()">
<img src="/src/images/flechehaut.png" style="width:60px;height:60px;" />
</button>
</div>
<div class="bouton" placement="top" ngbTooltip="Déplacer instruction vers le bas">
<button (click)="moveDown()">
<img src="/src/images/flechebas.png" style="width:60px;height:60px;" />
</button>
</div>
我想知道是否可以使用我的 move up 按钮向上移动一整行并使用我的 move down 按钮向下移动一行。 我查看了ag-grid documentation,但没有发现这种可能性。
至少有可能吗?如果是,我应该如何看待这个问题?
【问题讨论】: