diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue
index b3e6d7b83..03e9f6760 100644
--- a/src/components/datatable/DataTable.vue
+++ b/src/components/datatable/DataTable.vue
@@ -404,8 +404,8 @@ export default {
const sorted = this.sortMode === 'single' ? (this.d_sortField === (column.field || column.sortField)) : this.getMultiSortMetaIndex(column) > -1;
return [column.headerClass,
- {'p-sortable-column': column.sortable},
- {'p-resizable-column': this.resizableColumns},
+ {'p-sortable-column': column.sortable},
+ {'p-resizable-column': this.resizableColumns},
{'p-highlight': sorted}
];
},
@@ -943,7 +943,7 @@ export default {
'p-datatable-hoverable-rows': (this.rowHover || this.selectionMode),
'p-datatable-auto-layout': this.autoLayout,
'p-datatable-resizable': this.resizableColumns,
- 'p-datatable-resizable-fit': this.resizableColumns && this.columnResizeMode === 'fit',
+ 'p-datatable-resizable-fit': this.resizableColumns && this.columnResizeMode === 'fit'
}
];
},
diff --git a/src/components/treetable/TreeTable.vue b/src/components/treetable/TreeTable.vue
index c3d8289fb..382e31473 100644
--- a/src/components/treetable/TreeTable.vue
+++ b/src/components/treetable/TreeTable.vue
@@ -19,11 +19,12 @@
+
DataTable - Column ResizeColumns can be resized using drag drop by setting the resizableColumns to true. There are two resize modes; "fit" and "expand". Fit is the default one and the overall table width does not change when a column is resized. - In "expand" mode, table width also changes along with the column width. onColumnResize is a callback that passes the resized column header as a parameter. + In "expand" mode, table width also changes along with the column width.Fit ModeExpand Mode
+
+
+
+
\ No newline at end of file
diff --git a/src/views/treetable/TreeTableSubMenu.vue b/src/views/treetable/TreeTableSubMenu.vue
index 9ff1ac971..0e2e6aef5 100644
--- a/src/views/treetable/TreeTableSubMenu.vue
+++ b/src/views/treetable/TreeTableSubMenu.vue
@@ -9,7 +9,7 @@
+
+
+
+
+ TreeTable - Column Resize+Columns can be resized using drag drop by setting the resizableColumns to true. There are two resize modes; "fit" and "expand". Fit is the default one and the overall table width does not change when a column is resized. + In "expand" mode, table width also changes along with the column width. +
+
+ Fit Mode+Expand Mdoe+ |
---|