Skip to content

Hide slot "no-more" option #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vgladimir opened this issue Jul 16, 2017 · 8 comments
Closed

Hide slot "no-more" option #61

vgladimir opened this issue Jul 16, 2017 · 8 comments

Comments

@vgladimir
Copy link

Hello,

In my app I don't need any "no-more" message. How to hide this slot in normal way?

@PeachScript
Copy link
Owner

You can simply override it through a blank element:

<infinite-loading>
  <span slot="no-more"></span>
</infinite-loading>

@vgladimir
Copy link
Author

Yes, but how about extra style on .infinite-status-prompt.

2017-07-17 9 41 58

@PeachScript
Copy link
Owner

Oh...It's really difficult, this part of the code has side-effect, so I must optimize it in the next version. For now, you can override the styles of .infinite-status-prompt in your code, it's a temporary solution, how do you think?

@vgladimir
Copy link
Author

vgladimir commented Jul 19, 2017

For temporary solution I will do it. Okey, I am waiting for a update. Thanks!

@PeachScript
Copy link
Owner

Hi @vgladimir , v2.2.0 has been released, include the slot hide feature, you can try it now, please feedback to here if you find any problem, thanks :D

@Sinled
Copy link

Sinled commented Sep 19, 2017

Hi, i have a little different case,
i want to render custom markup inside slots not just text, and in this case i should manually reset inherited styles,
is there more convenient solution?

@PeachScript
Copy link
Owner

Not yet, you must override the inherited styles currently, it is another problem, we can discuss in #80

@hardik-baraiya-123456
Copy link

<InfiniteLoading @infinite="load">
          <template #complete><div></div></template>
        </InfiniteLoading>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants