@@ -11,12 +11,12 @@ app.controller('demoController', function($scope, $http) {
11
11
search : {
12
12
label : 'filter in: ' ,
13
13
} ,
14
- pagination : { // optional
15
- labelSize : 'Registros por página: ' , // optional, default "Page size: ""
16
- defaultSize : 10 , // optional, default first item in avaliableSizes
17
- avaliableSizes : [ 10 , 25 , 50 , 100 , 500 , 2000 ] // optional, default [10,25,50,100]
18
- // positionBottom: true // optional, default is position top
19
- } ,
14
+ // pagination: { // optional
15
+ // labelSize: 'Registros por página: ', // optional, default "Page size: ""
16
+ // defaultSize: 10, // optional, default first item in avaliableSizes
17
+ // avaliableSizes: [10, 25, 50, 100, 500, 2000] // optional, default [10,25,50,100]
18
+ // // positionBottom: true // optional, default is position top
19
+ // },
20
20
21
21
popoverRow : { // optional
22
22
titleRender : function ( row ) { // optional, callback(currentRow) for render title in popover
@@ -29,26 +29,28 @@ app.controller('demoController', function($scope, $http) {
29
29
}
30
30
} ,
31
31
32
- collumns : [ {
33
- title : '' ,
34
- index : 'enable' ,
35
- class : 'text-center' ,
36
- sort : false ,
37
- action : {
38
- type : 'checkbox' ,
39
- class : 'checkboxClass' ,
40
- checkInHeader : true ,
41
- isDisabled : function ( row ) {
42
- return row . id == 1 ;
43
- } ,
44
- onCheckHeader : function ( checked ) {
45
- console . log ( 'checked: ' + checked ) ;
46
- } ,
47
- onCheck : function ( obj , checked ) {
48
- console . log ( 'checked: ' + checked + ', obj:' + obj . id ) ;
49
- }
50
- }
51
- } , {
32
+ collumns : [
33
+ // {
34
+ // title: '',
35
+ // index: 'enable',
36
+ // class: 'text-center',
37
+ // sort: false,
38
+ // action: {
39
+ // type: 'checkbox',
40
+ // class: 'checkboxClass',
41
+ // checkInHeader: true,
42
+ // isDisabled: function(row){
43
+ // return row.id == 1;
44
+ // },
45
+ // onCheckHeader: function(checked) {
46
+ // console.log('checked: ' + checked);
47
+ // },
48
+ // onCheck: function(obj, checked) {
49
+ // console.log('checked: ' + checked + ', obj:' + obj.id);
50
+ // }
51
+ // }
52
+ // },
53
+ {
52
54
title : 'ID' ,
53
55
index : 'id' ,
54
56
class : 'text-center'
0 commit comments