Skip to content

Commit db88b90

Browse files
committed
Commit v1.2.0
1 parent e5e766f commit db88b90

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,13 @@ http://markcell.github.io/jQuery-Tabledit
3131
```js
3232
/**
3333
* Example #1
34-
* Inline edit like a spreadsheet on two columns only.
34+
* Add toolbar column with all buttons.
3535
*/
3636
$('#example1').Tabledit({
3737
url: 'example.php',
38-
editButton: false,
39-
deleteButton: false,
4038
columns: {
41-
// Column used to identify table row.
42-
// [column_index, input_name]
4339
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']]
4741
}
4842
});
4943
```
@@ -73,13 +67,19 @@ $('#example2').Tabledit({
7367
```js
7468
/**
7569
* Example #3
76-
* Add toolbar column with all buttons.
70+
* Inline edit like a spreadsheet on two columns only.
7771
*/
7872
$('#example3').Tabledit({
7973
url: 'example.php',
74+
editButton: false,
75+
deleteButton: false,
8076
columns: {
77+
// Column used to identify table row.
78+
// [column_index, input_name]
8179
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']]
8383
}
8484
});
8585
```

0 commit comments

Comments
 (0)