Skip to content
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

Loading Props for Components #49

Open
kevinfaveri opened this issue Mar 12, 2020 · 4 comments
Open

Loading Props for Components #49

kevinfaveri opened this issue Mar 12, 2020 · 4 comments
Assignees

Comments

@kevinfaveri
Copy link
Owner

Useful for showing a default loading placeholder if the datasets are being loaded on demand.

  • Loading prop for Twemoji Textarea.
  • Loading prop for Twemoji Picker.
@guanzo
Copy link

guanzo commented Mar 21, 2020

Would be nice to have a slot for the loader, in case the user wants to pass something other than a string, like a loading icon.

@kevinfaveri
Copy link
Owner Author

So, you mean relative to the isLoadingLabel? Because there is a slot already for the button so you can configure as you wish: https://kevinfaguiar.github.io/vue-twemoji-picker/docs/twemoji-picker-api/#twemoji-picker-button

@guanzo
Copy link

guanzo commented Mar 28, 2020

I am talking about isLoadingLabel. But I fail to see how the twemoji-picker-button slot allows me to customize the loading text?

alt

I was asking for something like this

<twemoji-picker>
  <template v-slot:loading>
    <MyAwesomeLoadingComponent />
   <!-- Display component rather than a string "Loading..."-->
  </template>
</twemoji-picker>

@kevinfaveri
Copy link
Owner Author

Hi there! This is why I asked haha
Basically this issue was for some loading effect on the component itself... But I will think about changing isLoadingLabel and update here... Thank for your support

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

2 participants