Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 43115b9

Browse files
committed
Correct rowSelect example #274
1 parent 3d1b790 commit 43115b9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

demo/advanced/rowSelect.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ <h1><i class="fa fa-play"></i>&nbsp;Selecting rows</h1>
6161
DTColumnBuilder.newColumn(null).withTitle(titleHtml).notSortable()
6262
.renderWith(function(data, type, full, meta) {
6363
vm.selected[full.id] = false;
64-
return '<input type="checkbox" ng-model="showCase.selected[' + data.id + ']"' +
65-
'ng-click="showCase.toggleOne(showCase.selected)"/>';
64+
return '<input type="checkbox" ng-model="showCase.selected[' + data.id + ']" ng-click="showCase.toggleOne(showCase.selected)"/>';
6665
}),
6766
DTColumnBuilder.newColumn('id').withTitle('ID'),
6867
DTColumnBuilder.newColumn('firstName').withTitle('First name'),

demo/advanced/rowSelect.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ function RowSelect($compile, $scope, $resource, DTOptionsBuilder, DTColumnBuilde
3131
DTColumnBuilder.newColumn(null).withTitle(titleHtml).notSortable()
3232
.renderWith(function(data, type, full, meta) {
3333
vm.selected[full.id] = false;
34-
return '<input type="checkbox" ng-model="showCase.selected[' + data.id + ']"' +
35-
'ng-click="showCase.toggleOne(showCase.selected)"/>';
34+
return '<input type="checkbox" ng-model="showCase.selected[' + data.id + ']" ng-click="showCase.toggleOne(showCase.selected)"/>';
3635
}),
3736
DTColumnBuilder.newColumn('id').withTitle('ID'),
3837
DTColumnBuilder.newColumn('firstName').withTitle('First name'),

0 commit comments

Comments
 (0)