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

How do I change the value of 'No more results!'? #332

Open hkhongg opened 9 months ago

hkhongg commented 9 months ago

How do I change the value of 'No more results!'?

joweste commented 7 months ago

I need it as well

skylerberg commented 2 months ago

You can change it via slots (among other ways to change it).

Check out the documentation here: https://peachscript.github.io/vue-infinite-loading/guide/configure-load-msg.html#via-component-prop

<infinite-loading>
  <div slot="spinner">Loading...</div>
  <div slot="no-more">No more message</div>
  <div slot="no-results">No results message</div>
</infinite-loading>