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 b8196eb96..2dc2ac7f3 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 1a6b7e7e7..03fea6e7e 100755 --- a/packages/primevue/src/datatable/DataTable.vue +++ b/packages/primevue/src/datatable/DataTable.vue @@ -70,6 +70,7 @@