vue-twemoji-picker icon indicating copy to clipboard operation
vue-twemoji-picker copied to clipboard

Loading Props for Components

Open kevinfaveri opened this issue 5 years ago • 4 comments
trafficstars

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.

kevinfaveri avatar Mar 12 '20 04:03 kevinfaveri

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.

guanzo avatar Mar 21 '20 22:03 guanzo

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

kevinfaveri avatar Mar 28 '20 00:03 kevinfaveri

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>

guanzo avatar Mar 28 '20 00:03 guanzo

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

kevinfaveri avatar Mar 28 '20 13:03 kevinfaveri