ng2-datepicker icon indicating copy to clipboard operation
ng2-datepicker copied to clipboard

Ability to keep calendar open after selecting a date

Open Alex61NN5 opened this issue 6 years ago • 0 comments

Hey there,

It would be good if you could set an option to keep the calendar open even after selection.

For example in options

options: DatepickerOptions ={
   keepCalendarOpen: true
}

then in your setDate() function you could do

setDate(i: number): void {
      this.date = this.days[i].date;
      this.value = this.date;
      this.init();
      if (!this.keepCalendarOpen) { this.close(); }
}

Alex61NN5 avatar Apr 08 '19 02:04 Alex61NN5