diff --git a/src/framework/theme/components/datepicker/datepicker.component.ts b/src/framework/theme/components/datepicker/datepicker.component.ts index 082e42b5d8..1ed2b554cf 100644 --- a/src/framework/theme/components/datepicker/datepicker.component.ts +++ b/src/framework/theme/components/datepicker/datepicker.component.ts @@ -116,6 +116,12 @@ export abstract class NbBasePicker */ @Input() hideOnSelect: boolean = true; + /** + * Determines should we show calendars header or not. + * @type {boolean} + */ + @Input() showHeader: boolean = true; + /** * Calendar component class that has to be instantiated inside overlay. * */ @@ -348,6 +354,7 @@ export abstract class NbBasePicker this.picker.monthCellComponent = this.monthCellComponent; this.picker._yearCellComponent = this.yearCellComponent; this.picker.size = this.size; + this.picker.showHeader = this.showHeader; this.picker.visibleDate = this.visibleDate; }