jonasgeiler / svelte-infinite-loading

An infinite scroll component for Svelte, to help you implement an infinite scroll list more easily.
MIT License
304 stars 11 forks source link

Is there any way to remove no more data message? #11

Closed limjunhyuk97 closed 2 years ago

limjunhyuk97 commented 2 years ago

Hi, I'm currently using your work for shopping mall project. And, I noticed that there is no given documents for customizing"no more data" message. So I leaved an issue to ask you about some ways to customize those messages.

Thank you.

jonasgeiler commented 2 years ago

You can remove the message like this:

<InfiniteLoading>
  <span slot="noMore"></span>
</InfiniteLoading>

The same works for all the other slots (noResults, error, spinner)

In the future I will probably make it empty by default....

limjunhyuk97 commented 2 years ago

Thanks a lot! This really helps me ;)