Angular JS UI-Grid Delete Row

后端 未结 5 496
野趣味
野趣味 2021-02-05 16:47

I\'m new to ui-grid and I\'m trying to implement a table in AngularJS as shown in the picture below. I\'m trying to select a row and delete it using a delete button

5条回答
  •  后悔当初
    2021-02-05 17:39

    Just remove the row you want to delete from ui-grids data source model using splice.

    For example

    $scope.myGridOptions.data.splice(, 1);
    

提交回复
热议问题