feat: Ability to disable column reordering
This commit is contained in:
parent
1a9c11edf0
commit
31264d1f4d
@ -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, {
|
||||
|
||||
@ -66,5 +66,6 @@ export default {
|
||||
dynamicRowHeight: false,
|
||||
pasteFromClipboard: false,
|
||||
showTotalRow: false,
|
||||
direction: 'ltr'
|
||||
direction: 'ltr',
|
||||
disableReorderColumn: false
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user