-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change table loading to simple border animation to avoid UI flicker #1028
Comments
Indeed, an overlay could be a solution too like suggested in #1120. I've recently improved this example: https://github.com/nuxt/ui/blob/dev/docs/components/content/examples/TableExampleAdvanced.vue to couple the |
Sorry I forgot to mention, a new You can do |
@jd-solanki Would you mind sharing the link for the Vuetify animation you're referring to? |
Sure! Screen.Recording.2024-01-19.at.3.40.45.PM.movIt has border as loading animation below header. |
This is indeed really nice but I'm not sure how we could make a progress bar work. How would you define the percentage of the progress? |
Progressbar will be indeterminate |
Good thing we already have it https://ui.nuxt.com/elements/progress#indeterminate 🙂 |
Description
Hi 👋🏻
Thanks for working on it. I'm trying this in one of the projects and raising the issue for further improvements.
ATM, when we fetch data from the remote source and toggle the loading state until the data is fetched table content is replaced with the loading UI and it gives flicker like effect.
It gets even worse when the table doesn't have the full height.
It'll be better if we can just have the loading border like animation just like vuetify:
lin this demo they are also removing the content but look at the loading animation. If we can keep the previous data and show the loading border until the data fetching is finished then it will be nice UX.
Additional context
Does nuxt UI table support the server side table? I checked the sort code and there's nothing related to server side fetching and even if we try to use the
update:sort
emit table component already sorts the available data. I guess we can improve this demo to make it a true server side table (only 10 records should be fetched from the API at single time).The text was updated successfully, but these errors were encountered: