문제

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