Skip to content

Commit

Permalink
fix(datepicker): add missing show header input (#1889)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg authored Aug 29, 2019
1 parent 4589726 commit d265991
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ export abstract class NbBasePicker<D, T, P>
*/
@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.
* */
Expand Down Expand Up @@ -348,6 +354,7 @@ export abstract class NbBasePicker<D, T, P>
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;
}

Expand Down

0 comments on commit d265991

Please sign in to comment.