nhn/tui.calendar

how to set the end time when user select start hour.

minbokang opened this issue · 0 comments

@Version 1.15.2

how to set the end time when user select start hour.

i tried like this.....

this.rangePicker.on('change:start', function() {
    this._setDatepickerState({start: this.rangePicker.getStartDate()});
    let eday = new TZDate(this.rangePicker.getStartDate()).addMinutes(60);  //  add 1hour 
   console.log(eday);
    this._setDatepickerState({end: eday); // not work
}.bind(this));
this.rangePicker.on('change:end', function() {
    this._setDatepickerState({end: this.rangePicker.getEndDate()});
}.bind(this));

eday was ok . but rangepicker is not changed and end value of the schedule is not changed