Giter Club home page Giter Club logo

Comments (8)

ratiw avatar ratiw commented on May 29, 2024

@NightZpy Sorry, I don't know what you mean. Can you please explain more?

from vue-table.

NightZpy avatar NightZpy commented on May 29, 2024

@ratiw it would be interesting that you added dynamic search as jquery datatable! :D

from vue-table.

ratiw avatar ratiw commented on May 29, 2024

@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.

mdaliyan avatar mdaliyan commented on May 29, 2024

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.

ratiw avatar ratiw commented on May 29, 2024

@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.

mdaliyan avatar mdaliyan commented on May 29, 2024

@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.

ratiw avatar ratiw commented on May 29, 2024

@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.

mdaliyan avatar mdaliyan commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.