A modern and powerful gantt chart component for Angular
Home Page:http://gantt.ngnice.com
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
calibura opened this issue 5 months ago · comments
你好,在线demo中可以重现。 发现 root.component.ts 中 ngOnInit 里用了 scrollToToday 但是没生效,尝试添加 timeout 后可以实现定位到今天,但是会·闪一下,请问有更好的方式解决吗?
切换视图并不会重新渲染组件,所以不会重新执行 ngOnInit 中的 scrollToToday(), 如果有需要可以手动调用 scrollToday() 来实现
@ViewChild('gantt') ganttComponent: NgxGanttComponent; this.ganttComponent.scrollToToday();