Tag: angular ui grid

如何将angular度uiselect结果绑定到ui-grid / ng-grid

我想绑定一个UIselect结果到一个UI网格… $scope.gridOptions = { enableSorting: true, showFooter: true, columnDefs: [ { field: 'name', name: 'Name' }, ], data: 'multipleDemo.selected', onRegisterApi: function( gridApi ) { $scope.gridApi = gridApi; } }; $scope.selectItem = function (item, model) { $scope.gridApi.core.notifyDataChange( $scope.gridApi.grid, uiGridConstants.dataChange.EDIT ); }; 我的玉模板是这样的: ui-select(theme='bootstrap', multiple='', ng-model='multipleDemo.selected', ng-disabled='disabled', close-on-select='false', on-select='selectItem()') ui-select-match(placeholder='select something…') {{$item.name}} ui-select-choices(repeat='f in data | filter: […]

使用Grunt和Node.js构buildAngularJS UI-Grid时遇到困难

我是Node.js,Github,Grunt和ui-grid项目中使用的其他工具的新手。 我试图按照https://github.com/angular-ui/ng-grid/blob/master/FIRST_TIMER.md中的说明开始操作。 它进行得很顺利,但是当我运行这个咕噜的任务时,我得到一个错误: PhantomJS 1.9.7 (Windows 7) ERROR ReferenceError: Can't find variable: jQuery at c:/Users/russell/ng-grid/lib/test/jquery.simulate.js:328 Warning: Task "karma:angular-1.2.14" failed. Use –force to continue. Aborted due to warnings. 我试图执行下一个命令grunt install并得到以下错误: >> bower csv-js#* ECMDERR Failed to execute "git ls-remote –tags –heads git://github.com/gkindel/CSV-JS.git", exit code of #128 Warning: Done, with errors. Use –force to continue. Aborted due […]

以ui-grid格式化页脚值

如何格式化ui-grid中列的聚合值? 用我的号码,我得到了一些可怕的东西 total: 6370.046074130321 当我想 total: $6370.05 我试了两个: footerCellTemplate: '<div class="ui-grid-cell-contents" >{{COL_FIELD | currency}}</div>', 和 footerCellTemplate: '<div class="ui-grid-cell-contents" >{{grid.getCellValue(row, col) | currency}}</div>', 但他们都没有工作。