Comments (8)
@NightZpy Sorry, I don't know what you mean. Can you please explain more?
from vue-table.
@ratiw it would be interesting that you added dynamic search as jquery datatable! :D
from vue-table.
@NightZpy The mechanism is already there but the actual search/filter is done on the sever side. I have already demonstrated it in the examples/semantic2.html
and examples/bootstrap.html
. Please check it out. I'm not sure is that what you're looking for?
from vue-table.
He probably wants a real-time filter like this:
http://www.jqueryscript.net/demo/Simplest-jQuery-Table-Row-Filter-Plugin-LiveSearch/
Here is a vue example:
http://vegibit.com/vue-js-tutorial/#filtering
from vue-table.
@mdaliyan @NightZpy I see. vuetable
was not designed to work like that because its data source is always pulled from the server. And it is expected that those data will be quite large, so most of the data processing is expected to be done from the server side.
However, I think it is possible to do that if you don't mind about many round-trip request from the server. You can modify the search functionality in the examples to trigger the vuetable:refresh
event when the user type in the search keyword in the input field with debounce
filter.
from vue-table.
@ratiw , did you see how vegibit.com
did it? I think that approach was quite good and fast.
However, you know what is better for vue-table. I appreciate you, and how you have coded it. I'm planning to use it in my next admin panel. Thanks
from vue-table.
@mdaliyan Many thanks. :)
In that tutorial from vegibit.com
, they simply demonstrate the use of Vue.js filter mechanism. It is fast because it only works with the data that's already in the client side.
I think if you have a few hundred of data, this approach is fine and really nice to work with as you just pull the whole data from the server once and filters through them via filterBy
or custom filters.
But in case you have (or are expecting to have) thousands of row of data, it would be very costly or even almost impossible to pull the whole data from the server and keep them in the client side for filtering like that. vuetable
is designed to work in this scenario, where it is only responsible for displaying a small chunk of data and put the rest of filtering and sorting to the (database) server.
In my opinion, filtering through this small chunk of displayed data does not seem to make much sense because we may be missing out bunch of data that is on the server side that would fit the "filtering criteria" as well.
from vue-table.
Good point. I must say I'm really impressed that are thinking about that many rows.
Thank you Rati.
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.