Вопрос

I am using jQuery Gantt Chart. I want to set the default scroll to Today's date. Currently its taking the least start date of all the records and it starts from there. Instead it should be to today's date.

Any help would be appreciated.

Это было полезно?

Решение

Right there in the docs: Set scrollToToday to true.

$(".selector").gantt({
   ....
   'scrollToToday': true
});

Другие советы

refer to here for the bug and code fix https://github.com/taitems/jQuery.Gantt/issues/52

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top