diff --git a/packages/primevue/src/datatable/BaseDataTable.vue b/packages/primevue/src/datatable/BaseDataTable.vue index 6e3a17b8be..b09e363ecf 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 a75c818bc7..89d9fa15e1 100755 --- a/packages/primevue/src/datatable/DataTable.d.ts +++ b/packages/primevue/src/datatable/DataTable.d.ts @@ -1164,6 +1164,11 @@ export interface DataTableProps { * @defaultValue 960px */ breakpoint?: string | undefined; + /** + * Whether to display table headers + * @defaultValue true + */ + showHeaders?: boolean | undefined; /** * Whether to show grid lines between cells. * @defaultValue false diff --git a/packages/primevue/src/datatable/DataTable.vue b/packages/primevue/src/datatable/DataTable.vue index 0f04fbfa3d..8d7e9c79ad 100755 --- a/packages/primevue/src/datatable/DataTable.vue +++ b/packages/primevue/src/datatable/DataTable.vue @@ -70,6 +70,7 @@