pass text with html tag to tab component
Closed this issue · 4 comments
bluelemonade commented
Hi,
How can I put html tags to a tab
I tried :html="selectedContent[currPage]" Is the a method, property for this issue.
Jacobs63 commented
Hello,
could you please elaborate on what you're trying to achieve?
To set a Tab's content, you can simply use it's default slot, which can contain anything you wish, including html:
<tab name="Second tab">
<h2 class="page-subtitle">Second tab</h2>
This is the content of the second tab.
</tab>
bluelemonade commented
i tried to pass text with html tags via {{ }}. ok tjats. wrong. I have to use html="variable". bit. thats not working.
Jacobs63 commented
Hello,
please post a demo with your code, as I unfortunately still do not understand what the issue is.
bluelemonade commented
I reinstalled the component and now the v-html works. hmmm