enterprise-ng
enterprise-ng copied to clipboard
Datepicker/Monthview isLoading API for when Changing Months with Legend Values
Is your feature request related to a problem? Please describe. We have recently introduced the legend to both a date-picker, and a month-view component. The legend works however when switching months we make a new API call to fetch that months worth of data to display on the legend, as a result there is a visible delay when switching between months.
Describe the solution you'd like Expose an isLoading property in the monthview and datepicker API that when enabled would show the IDS loading indicator directly in the monthview or datepicker component.
Describe alternatives you've considered
- Prefetch all the data we need, this can get too expensive when we have 1000s of concurrent users loading months worth of data on initial actions such as login.
- Prefetch 1 months ahead, when changing months to the 3rd month for example you would still get that same delay of while populating the legend.
- Mark the whole screen as loading, possible, but would look better to keep it contained to the component.
- Create a wrapper of the component that displays the loading, figured at this point may as well have an isLoading API for monthview and datepicker.
Additional context Legend we are using is: https://main-enterprise.demo.design.infor.com/components/datepicker/example-legend.html