We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would be a prop called parseHTML to read descriptions or messages as html.
[types.ts] export interface ToastT { ..., parseHtml: boolean }
[Toast.vue] <template v-if="toast.description"> <template v-if="toast.parseHtml"> <div data-description="" :class="descriptionClass + toastDescriptionClass" v-html="toast.description" /> </template> <template v-else> <div data-description="" :class="descriptionClass + toastDescriptionClass"> {{ toast.description }} </div> </template> </template>
The text was updated successfully, but these errors were encountered:
With the new release, you can do it by checking out docs and search for Custom with props
Custom with props
Sorry, something went wrong.
Hi there Thanks for the good product
Was html description implemented or is it achievable only via Custom Component and h() function?
Custom Component
No branches or pull requests
Would be a prop called parseHTML to read descriptions or messages as html.
[types.ts] export interface ToastT { ..., parseHtml: boolean }
[Toast.vue] <template v-if="toast.description"> <template v-if="toast.parseHtml"> <div data-description="" :class="descriptionClass + toastDescriptionClass" v-html="toast.description" /> </template> <template v-else> <div data-description="" :class="descriptionClass + toastDescriptionClass"> {{ toast.description }} </div> </template> </template>
The text was updated successfully, but these errors were encountered: