jjzjj

editableCellTemplate

全部标签

javascript - 在 ui-grid editableCellTemplate [ng-grid 3.x] 中使用 ng-option 下拉菜单

我正在使用ng-grid的新3.0版本ui-grid在我的应用程序中制作网格。我想要做的是将我表格中的一个可编辑单元格设为ng-options下拉列表中填充了使用Angular工厂检索的数据。我正在尝试使用editableCellTemplate来做到这一点ui-grid的特性。下面是一些示例代码:HTML:Controller:$scope.gridOptions={enableSorting:true,enableFiltering:true,enableCellEditOnFocus:true,columnDefs:[{field:'name',sort:{direction:'