reorder.md 912 B

Table Reorder

Use Plugin: bootstrap-table-reorder

Dependence: dragTable v2.0.14 (must include the css file),
jquery-ui v1.11

Usage

<link rel="stylesheet" href=".../dragtable.css">
<script src=".../jquery-ui.js"></script>
<script src=".../jquery.dragtable.js"></script>
<script src="extensions/cookie/bootstrap-table-reorder.js"></script>

Options

reorderable

  • type: Boolean
  • description: Set true to allow the reorder feature.
  • default: false

maxMovingRows

  • type: Integer
  • description: Moving only the header. Recommended for very large tables (cells > 1000)
  • default: 10

Events

onReorder(reorder.bs.table)

Fired when the column was dropped, receive as parameter the new header fields order