@@ -31,19 +31,13 @@ http://markcell.github.io/jQuery-Tabledit
31
31
``` js
32
32
/**
33
33
* Example #1
34
- * Inline edit like a spreadsheet on two columns only .
34
+ * Add toolbar column with all buttons .
35
35
*/
36
36
$ (' #example1' ).Tabledit ({
37
37
url: ' example.php' ,
38
- editButton: false ,
39
- deleteButton: false ,
40
38
columns: {
41
- // Column used to identify table row.
42
- // [column_index, input_name]
43
39
identifier: [0 , ' id' ],
44
- // Columns to transform in editable cells.
45
- // [[column_index, input_name], [column_index, input_name]]
46
- editable: [[2 , ' firstname' ], [3 , ' lastname' ]]
40
+ editable: [[1 , ' nickname' ], [2 , ' firstname' ], [3 , ' lastname' ]]
47
41
}
48
42
});
49
43
```
@@ -73,13 +67,19 @@ $('#example2').Tabledit({
73
67
``` js
74
68
/**
75
69
* Example #3
76
- * Add toolbar column with all buttons .
70
+ * Inline edit like a spreadsheet on two columns only .
77
71
*/
78
72
$ (' #example3' ).Tabledit ({
79
73
url: ' example.php' ,
74
+ editButton: false ,
75
+ deleteButton: false ,
80
76
columns: {
77
+ // Column used to identify table row.
78
+ // [column_index, input_name]
81
79
identifier: [0 , ' id' ],
82
- editable: [[1 , ' nickname' ], [2 , ' firstname' ], [3 , ' lastname' ]]
80
+ // Columns to transform in editable cells.
81
+ // [[column_index, input_name], [column_index, input_name]]
82
+ editable: [[2 , ' firstname' ], [3 , ' lastname' ]]
83
83
}
84
84
});
85
85
```
0 commit comments