|
button.element.onclick = (): void => {
scheduleObj.refresh();
// You can pass the specific time to the scrollTo method to scroll the schedule
scheduleObj.scrollTo("12:00");
}; |
|
button.element.onclick = (): void => {
// get scroll left position in px
scrollLeft = document.querySelector('.e-schedule-table .e-content-wrap').scrollLeft;
flag = true;
scheduleObj.refresh();
};
dataBound: () => {
if (flag) {
document.querySelector('.e-schedule-table .e-content-wrap').scrollLeft = scrollLeft;
}
} |