Inline editor for HTML tables compatible with Bootstrap
Inline editor for HTML tables compatible with Bootstrap. Tabledit use Ajax for saving new row and for Edit and Delete row.
Plugin works with other Plugins:
More in Example 7 on
https://bluesatkv.github.io/jquery-tabledit/#examples7
More in Example 9 on
https://bluesatkv.github.io/jquery-tabledit/#examples9-10
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="jquery.tabledit.js"></script>
<table class="table table-hover" id="my-table">
<thead>
<tr>
<th>Id</th>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Data 1</td>
<td>Data 2</td>
<td>Data 3</td>
<td>Data 4</td>
</tr>
</tbody>
</table>
$('#my-table').Tabledit({
columns: {
identifier: [0, 'id'],
editable: [[1, 'col1'], [2, 'col1'], [3, 'col3'], [4, 'col4']]
}
});
Readonly value in TD
You set this in the editable array, if you want readonly leave the column out of the ‘editable’ array e.g.: Column 3 wouldn’t be editable.
$('#my-table').Tabledit({
columns: {
identifier: [0, 'id'],
editable: [[1, 'col1'], [2, 'col1'], [4, 'col4']]
}
});
Full complete documentation by BluesatKV on
https://bluesatkv.github.io/jquery-tabledit/#documentation
See CHANGELOG on
https://github.com/BluesatKV/jquery-tabledit/blob/master/CHANGELOG.md