Comments (17)
π @ratiw
from vue-table.
You can do that yourself by listening to vuetable:loading
and vuetable:loaded
events.
vuetable:loading
event occurs just before vuetable
requests data from the server. And when there is a response back from the server (whether success for failure), the vuetable:loaded
event will occur.
This is done automatically in Semantic UI using loader, but Bootstrap does not come with that functionality. So, you may try to implement that using CSS or available third party library by calling trigger function inside those events to toggle the loading animation.
from vue-table.
@ratiw thaks for the hint, that works like a charm !
from vue-table.
@ratiw Anyway was thinking, wouldn't it be possible to implement a default loader inside the component quite like you do for the pagination component of the table? I mean this is just a thought and could be useful for those who are using bootstrap and don't know how to generate them-self a loader.
from vue-table.
@midium Well, I really think that the loader is kind of personal preference on styling. That's why I make vuetable
open to that via events. But it'll be nice if there are more people asking for it and you could help by sharing it to them. :)
from vue-table.
I was wondering about this myself, and I agree with @midium that the loader should be part of the component. However as @ratiw has pointed out, it is definitely a personal preference on how you want to present it - so from that point of view, it should preferably be kept outside of the component.
Perhaps a simple loader setup example can be part of the documentation wiki and users could just copy/modify based on the example? I haven't set up one yet, but when I do, I can share it in the docs or bootstrap example if @ratiw is interested?
from vue-table.
@mozami Yes, definitely. I only see benefits from sharing. It helps everyone! :)
from vue-table.
@ratiw OK - I will share it as part of the wiki docs and/or you can also include it in the bootstrap demo.
from vue-table.
I agree that at least an example on the wiki would be great
from vue-table.
π
from vue-table.
Hi @ratiw, how do I submit to the wiki?
I have forked your bootstrap demo and can add a loader to it then you can check it out.
from vue-table.
@mozami I believe you could clone the wiki, update it, and send pull request.
https://github.com/ratiw/vue-table.wiki.git
from vue-table.
π Thanks! I'll do so this afternoon
from vue-table.
@midium i've uploaded a simple of loader using the 'loading' css class that displays a loading message when the load commences. You can view it here: loader demo / index.html source code
@ratiw i have put together a small doc for the wiki on loader setup with some examples, but seems like the wiki is for the repo collaborators only. Let me know how else i should post it?
from vue-table.
@mozami Thanks a lot. I'll check it out later tonight.
For the wiki, I thought it was just another repo that people can share. Sorry for that.
I've just add you as a collaborator, can you please try again?
from vue-table.
@ratiw Done. Please check / edit anything as necessary:
https://github.com/ratiw/vue-table/wiki/Loading-Animation
from vue-table.
@mozami Perfect! :)
from vue-table.
Related Issues (20)
- Search with a extra data. HOT 6
- problem with scroll HOT 1
- Demo does not work in chrome HOT 4
- Error compiling template!!!! HELP ME!!! HOT 6
- Row totals HOT 3
- Is this an expected behavior of field callback?
- Can't style my grid to fit the content or a specific column HOT 2
- How use it for laravel HOT 1
- cell class cb
- Is it possible to add/del row dynamically? HOT 1
- unable to filter dates HOT 3
- No Data Available HOT 1
- Can I apply paging on client side? HOT 2
- Loading table with pre settings like sorting and page
- The word prev is spelled with the word next by mistake
- Pagination data not being transpile by polyfill
- Can i add `data-xxx` attribute to table head field? HOT 1
- http-fetch not showing data
- how to make columns resizableοΌ
- How to use Cursor-Pagination
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-table.