From a166badc66c787d3985a50f4617940f3f58c97ef Mon Sep 17 00:00:00 2001 From: BEagle1984 Date: Thu, 13 Oct 2022 16:28:56 +0200 Subject: [PATCH] fix headerHeight declaration (#2048) --- .../ngx-datatable/src/lib/components/datatable.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/swimlane/ngx-datatable/src/lib/components/datatable.component.ts b/projects/swimlane/ngx-datatable/src/lib/components/datatable.component.ts index 3cb20bed6..66e9a8f30 100644 --- a/projects/swimlane/ngx-datatable/src/lib/components/datatable.component.ts +++ b/projects/swimlane/ngx-datatable/src/lib/components/datatable.component.ts @@ -187,13 +187,13 @@ export class DatatableComponent implements OnInit, DoCheck, AfterViewInit { /** * The minimum header height in pixels. - * Pass a falsey for no header + * Pass 0 for no header */ - @Input() headerHeight: number = 30; + @Input() headerHeight: number | 'auto' = 30; /** * The minimum footer height in pixels. - * Pass falsey for no footer + * Pass 0 for no footer */ @Input() footerHeight: number = 0;