I have a problem with my ag-grid array, I have this array :
<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>
And I have two buttons :
<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>
And I was wondering if it was possible to move up an entire row with my move up button and to move down a row with my move down button.
I looked on the ag-grid documentation but found nothing about this possibility.
Is it at least possible ? And if it is, how should I look into this problem ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…