ANovokmet / svelte-gantt

:calendar: Interactive JavaScript Gantt chart/resource booking component

Home Page:https://anovokmet.github.io/svelte-gantt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zoomLevels examples or more details on how to implement?

labs20 opened this issue · comments

commented

Hi.

I couldnt find any examples or detailed documentation about zoomLevels.

Can you please point me to some more content about it?

Thanks

Hey, there is a discribtion of accepted arguments in the docs.

Defaults from Gantt.svelte:
export let zoomLevels = [ { headers: [ { unit: 'day', format: 'DD.MM.YYYY' }, { unit: 'hour', format: 'HH' } ], minWidth: 800, fitWidth: true }, { headers: [ { unit: 'hour', format: 'ddd D/M, H A' }, { unit: 'minute', format: 'mm', offset: 15 } ], minWidth: 5000, fitWidth: false } ];

commented

I'm closing this

commented

Ok.

I'd suggest to pick this code from that file and add it to the documentation section, as its hard to find it where it is now.

Thanks