From c7e328a65b1ecf11c6fd1bd92c630618af8e2279 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 17 Oct 2019 16:56:54 +0300 Subject: [PATCH] Row and Column Reordering for DataTable --- src/components/column/Column.vue | 12 +++ src/components/datatable/DataTable.vue | 95 ++++++++++++++++++-- src/views/datatable/DataTableReorderDemo.vue | 44 ++++++++- 3 files changed, 144 insertions(+), 7 deletions(-) diff --git a/src/components/column/Column.vue b/src/components/column/Column.vue index 808a8922e..38de5d24f 100644 --- a/src/components/column/Column.vue +++ b/src/components/column/Column.vue @@ -73,6 +73,18 @@ export default { rowspan: { type: Number, default: null + }, + rowReorder: { + type: Boolean, + default: false + } + ,rowReorderIcon: { + type: String, + default: 'pi pi-bars' + }, + reorderableColumn: { + type: Boolean, + default: true } }, render() { diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index a15be9f6a..68e1c5e60 100644 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -37,7 +37,8 @@