layout: docs title: Table Reorder Columns description: Table Reorder Columns extension of Bootstrap Table. group: extensions
Dependence:
{% highlight html %} {% endhighlight %}
attribute: data-reorderable-columns
type: Boolean
Detail:
Set true to allow the reorder feature.
falseattribute: data-max-moving-rows
type: Integer
Detail:
Moving only the header. Recommended for very large tables (cells > 1000)
10attribute: data-dragaccept
type: String
Detail:
Allow to drag only the rows that have the css class as attribute.
nullparameters: object e.g. {name: 0, price: 1}
Detail:
Reorders the the columns by the given object. The Object key has to be the field and the value is the column index (starts by 0).
Fired when the column was dropped, receive as parameter the new header fields order