Skip to content

Commit

Permalink
Correct rowSelect example #274
Browse files Browse the repository at this point in the history
  • Loading branch information
l-lin committed Apr 14, 2015
1 parent 3d1b790 commit 43115b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions demo/advanced/rowSelect.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ <h1><i class="fa fa-play"></i>&nbsp;Selecting rows</h1>
DTColumnBuilder.newColumn(null).withTitle(titleHtml).notSortable()
.renderWith(function(data, type, full, meta) {
vm.selected[full.id] = false;
return '<input type="checkbox" ng-model="showCase.selected[' + data.id + ']"' +
'ng-click="showCase.toggleOne(showCase.selected)"/>';
return '<input type="checkbox" ng-model="showCase.selected[' + data.id + ']" ng-click="showCase.toggleOne(showCase.selected)"/>';
}),
DTColumnBuilder.newColumn('id').withTitle('ID'),
DTColumnBuilder.newColumn('firstName').withTitle('First name'),
Expand Down
3 changes: 1 addition & 2 deletions demo/advanced/rowSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ function RowSelect($compile, $scope, $resource, DTOptionsBuilder, DTColumnBuilde
DTColumnBuilder.newColumn(null).withTitle(titleHtml).notSortable()
.renderWith(function(data, type, full, meta) {
vm.selected[full.id] = false;
return '<input type="checkbox" ng-model="showCase.selected[' + data.id + ']"' +
'ng-click="showCase.toggleOne(showCase.selected)"/>';
return '<input type="checkbox" ng-model="showCase.selected[' + data.id + ']" ng-click="showCase.toggleOne(showCase.selected)"/>';
}),
DTColumnBuilder.newColumn('id').withTitle('ID'),
DTColumnBuilder.newColumn('firstName').withTitle('First name'),
Expand Down

0 comments on commit 43115b9

Please sign in to comment.