svelte-gantt icon indicating copy to clipboard operation
svelte-gantt copied to clipboard

lazy loading? moment.js settings probability?

Open becory opened this issue 2 years ago • 5 comments

This project is awesome. I love it so much. I have some problem when I using this.

  1. Does it have lazy loading support?
  2. How can we set the moment.js settings? (ex. setting localization or which day of the week in year for global setting in gantt)

becory avatar Oct 27 '21 09:10 becory

  1. What do you mean by lazy loading?
  2. Are those global moment settings? If so you could set them before initializing gantt. An example of the settings you are trying to set would help me since I don't know much about that.

ANovokmet avatar Nov 16 '21 19:11 ANovokmet

Hey @becory, would you mind giving more infos or answer to the previous questions please 😄 ? Currently to clean the issues so I can have a clearer picture of the points to handle. Thanks

V-Py avatar Jun 04 '22 06:06 V-Py

  1. lazy loading for request api data can split data, because data maybe to large it will load in a long time.
  2. moment.js is deprecated, could you plan to move like day.js or other js package?

becory avatar Jun 11 '22 10:06 becory

moment.js customize https://momentjs.com/docs/#/customization/

becory avatar Jun 11 '22 10:06 becory

Hi, since the 4.0.0 version of svelte-gantt, there is no more momentjs dependency but there is however a momentjs adapter if you want to keep using moment to format your date.

About lazy loading, your use case would be initializing the Gantt with very large data hence leading to splitted data and/or long loading time ?

V-Py avatar Jun 13 '22 09:06 V-Py