feat: Ability to disable column reordering

This commit is contained in:
Faris Ansari 2019-10-01 00:12:17 +05:30
parent 1a9c11edf0
commit 31264d1f4d
2 changed files with 4 additions and 1 deletions

View File

@ -228,6 +228,8 @@ export default class ColumnManager {
}
bindMoveColumn() {
if (this.options.disableReorderColumn) return;
const $parent = $('.dt-row', this.header);
this.sortable = Sortable.create($parent, {

View File

@ -66,5 +66,6 @@ export default {
dynamicRowHeight: false,
pasteFromClipboard: false,
showTotalRow: false,
direction: 'ltr'
direction: 'ltr',
disableReorderColumn: false
};