neuronetio / gantt-elastic

Gantt Chart [ javascript gantt chart, gantt component, vue gantt, vue gantt chart, responsive gantt, project manager , vue projects ]

Home Page:https://neuronet.io/gantt-elastic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

collapse rows on loading

mdieudonne opened this issue · comments

Hi,

When loading the page with tens of sub-tasks, the cpu usage is very high.
~70% on my config.
Would it possible to add the option to collapse all tasks by default?

Thx,
Michael

I'm afraid that this would not help.
Of course I will add this feature, but I think that problem with performance is elsewhere.
I will try to optimize code at the end of work, before final release.

I experience lags when all rows are expanded, when some are collapsed: no lag.
I think that collapsing all row on load allow user to see more tasks without compromising performance, and see detail only if needed.

Aha, I will add collapsed option to tasks so you could collapse them by default.

PS If you add collapsed property to task right now it will have collapsed only icon 😜

check out 0.7.4 version
just set collapsed property on task to true

Hey, thank for updating!
I found one problem though:
When a row has no children, no "+" is displayed which is normal (but still I note the mouse pointer changes).
image

However when setting collapsed to true, just a vertical bar is displayed which is unexpected
image

ok, I'll fix this

@mdieudonne those [+] should work now (0.7.7)