From 7ab50d18d64c1b3f9fd16becdaa3ec6eeffc5d66 Mon Sep 17 00:00:00 2001 From: Maxim Karpov Date: Sat, 22 Jun 2024 22:18:05 +0300 Subject: [PATCH 1/2] added showHeaders prop to datatable --- packages/primevue/src/datatable/BaseDataTable.vue | 4 ++++ packages/primevue/src/datatable/DataTable.d.ts | 5 +++++ packages/primevue/src/datatable/DataTable.vue | 1 + 3 files changed, 10 insertions(+) diff --git a/packages/primevue/src/datatable/BaseDataTable.vue b/packages/primevue/src/datatable/BaseDataTable.vue index 6e3a17b8b..b09e363ec 100644 --- a/packages/primevue/src/datatable/BaseDataTable.vue +++ b/packages/primevue/src/datatable/BaseDataTable.vue @@ -238,6 +238,10 @@ export default { type: String, default: '960px' }, + showHeaders: { + type: Boolean, + default: true + }, showGridlines: { type: Boolean, default: false diff --git a/packages/primevue/src/datatable/DataTable.d.ts b/packages/primevue/src/datatable/DataTable.d.ts index a75c818bc..bca301e88 100755 --- a/packages/primevue/src/datatable/DataTable.d.ts +++ b/packages/primevue/src/datatable/DataTable.d.ts @@ -1168,6 +1168,11 @@ export interface DataTableProps { * Whether to show grid lines between cells. * @defaultValue false */ + showHeaders?: boolean | undefined; + /** + * Whether to display table headers + * @defaultValue true + */ showGridlines?: boolean | undefined; /** * Whether to displays rows with alternating colors. diff --git a/packages/primevue/src/datatable/DataTable.vue b/packages/primevue/src/datatable/DataTable.vue index 0f04fbfa3..8d7e9c79a 100755 --- a/packages/primevue/src/datatable/DataTable.vue +++ b/packages/primevue/src/datatable/DataTable.vue @@ -70,6 +70,7 @@