- var app = angular.module('app', [ 'ui.grid.resizeColumns']);
- $scope.gridOptions.enableColumnResizing = true;
- <div id="grid1" ui-grid="gridOptions" ui-grid-resize-columns class="grid"></div>
不邀自来,一共三步不要忘记。
转自:https://www.zhihu.com/question/35907263/answer/118839898