Skip to content

Commit d265991

Browse files
authored
fix(datepicker): add missing show header input (#1889)
1 parent 4589726 commit d265991

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/framework/theme/components/datepicker/datepicker.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ export abstract class NbBasePicker<D, T, P>
116116
*/
117117
@Input() hideOnSelect: boolean = true;
118118

119+
/**
120+
* Determines should we show calendars header or not.
121+
* @type {boolean}
122+
*/
123+
@Input() showHeader: boolean = true;
124+
119125
/**
120126
* Calendar component class that has to be instantiated inside overlay.
121127
* */
@@ -348,6 +354,7 @@ export abstract class NbBasePicker<D, T, P>
348354
this.picker.monthCellComponent = this.monthCellComponent;
349355
this.picker._yearCellComponent = this.yearCellComponent;
350356
this.picker.size = this.size;
357+
this.picker.showHeader = this.showHeader;
351358
this.picker.visibleDate = this.visibleDate;
352359
}
353360

0 commit comments

Comments
 (0)