Bootstrap Table - reorderableColumns demo
Bootstrap Table - reorderableColumns demo. Simple demo of reorderableColumns extension, first created 19/8/2016 and possibly updated since
HTML
<link rel="stylesheet" href="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.css">
<script src="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.js"></script>
<script src="http://issues.wenzhixin.net.cn/bootstrap-table/assets/bootstrap-table/src/extensions/reorder-columns/bootstrap-table-reorder-columns.js"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script src="https://rawgit.com/akottr/dragtable/master/jquery.dragtable.js"></script>
<link rel="stylesheet" href="https://rawgit.com/akottr/dragtable/master/dragtable.css">
<table id="table">
<thead>
<tr>
<th data-field="name">Name</th>
<th data-field="stargazers_count">Stars</th>
<th data-field="forks_count">Forks</th>
<th data-field="description">Description</th>
</tr>
</thead>
</table>
JavaScript
// Bootstrap Table - reorderableColumns demo. Simple demo of reorderableColumns extension, first created 19/8/2016 and possibly updated since
$("#table").bootstrapTable({
url: "/gh/get/response.json/wenzhixin/bootstrap-table/tree/master/docs/data/data1/",
reorderableColumns:true
})