HintIcon

Hi, is there a way to display an html format in hinticon? Ex:
<ul>
<li>Hello</li>
<li>Hi</li>
<li>How are you</li>
</ul>
<ul>
<li>Hello</li>
<li>Hi</li>
<li>How are you</li>
</ul>
No description
Solution:
try inline
x-tooltip="{content: '<div><ul><li>Hi</li><li>Hello</li><li>World</li></ul></div>', allowHTML:true}"
x-tooltip="{content: '<div><ul><li>Hi</li><li>Hello</li><li>World</li></ul></div>', allowHTML:true}"
...
Jump to solution
9 Replies
LeandroFerreira
LeandroFerreira6mo ago
use hint(new HtmlString('<ul>...</ul>'))
lazydog
lazydogOP6mo ago
Thanks, that's okay but I need to hover first the icon to show the "messages"
LeandroFerreira
LeandroFerreira6mo ago
tooltip?
lazydog
lazydogOP6mo ago
Yes
->hintIcon('heroicon-m-question-mark-circle',tooltip: new HtmlString('<ul>
<li>Hello</li>
<li>Hi</li>
<li>How are you</li>
</ul>'))
->hintIcon('heroicon-m-question-mark-circle',tooltip: new HtmlString('<ul>
<li>Hello</li>
<li>Hi</li>
<li>How are you</li>
</ul>'))
LeandroFerreira
LeandroFerreira6mo ago
->hint(view('custom-hint'))
->hint(view('custom-hint'))
<!-- custom-hint.blade.php -->
<div>
<x-filament::icon
icon="heroicon-m-question-mark-circle"
class="h-5 w-5"
x-tooltip="{content: '<div>your html...</div>', allowHTML:true}"
/>
</div>
<!-- custom-hint.blade.php -->
<div>
<x-filament::icon
icon="heroicon-m-question-mark-circle"
class="h-5 w-5"
x-tooltip="{content: '<div>your html...</div>', allowHTML:true}"
/>
</div>
lazydog
lazydogOP6mo ago
Thanks for the suggestion, I've tried it now and this is the result.
->hint(view('custom-hint'))

// blade view
<div>
<x-filament::icon
icon="heroicon-m-question-mark-circle"
class="h-5 w-5"
x-tooltip="{content: '<div>
<ul>
<li>Hi</li>
<li>Hello</li>
<li>World</li>
</ul>
</div>', allowHTML:true}"
/>
</div>
->hint(view('custom-hint'))

// blade view
<div>
<x-filament::icon
icon="heroicon-m-question-mark-circle"
class="h-5 w-5"
x-tooltip="{content: '<div>
<ul>
<li>Hi</li>
<li>Hello</li>
<li>World</li>
</ul>
</div>', allowHTML:true}"
/>
</div>
No description
Solution
LeandroFerreira
LeandroFerreira6mo ago
try inline
x-tooltip="{content: '<div><ul><li>Hi</li><li>Hello</li><li>World</li></ul></div>', allowHTML:true}"
x-tooltip="{content: '<div><ul><li>Hi</li><li>Hello</li><li>World</li></ul></div>', allowHTML:true}"
lazydog
lazydogOP6mo ago
Thanks @Leandro Ferreira
Want results from more Discord servers?
Add your server