PeachScript / vue-infinite-loading

An infinite scroll plugin for Vue.js.
https://peachscript.github.io/vue-infinite-loading/
MIT License
2.67k stars 368 forks source link

Create a function and call on change #264

Closed Tes3awy closed 4 years ago

Tes3awy commented 5 years ago

Hello @PeachScript ,

I came across your amazing plugin and used it in one of my projects. I am really impressed with your plugin. It's very useful. I'll get straight to the point. I have a dropdown list where each option has to call an API from a server and get some data. How can I run the function on change manually of each dropdown values? I found this example but couldn't figure out how to use without buttons. Can you assist me in my approach, please? Thanks a lot

PeachScript commented 5 years ago

Glad you like it, thanks!

Do you want to use dropdown menu as a filter for list? If yes, you can checkout the filter demo.