Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
minbokang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@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
Beta Was this translation helpful? Give feedback.
All reactions