-1
我有我的AG-柵陣列的一個問題,我有這樣的數組:Angular2 + 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>
,我想知道是否有可能拉昇的整行與我的向上移動按鈕並向下移動連同我的向下移動按鈕。 我看着ag-grid documentation,但沒有發現這種可能性。
至少可能嗎?如果是這樣,我該如何看待這個問題?
所以我創建了一列_step_其中數字每個I添加行時間增加;但現在,我怎樣才能用按鈕修改這個值? 我實際上可以修改它,如果我添加'editable:true'到我的'gridOptions.columnDefs',但這不是我想要做的。 – UserName