F
Filament3mo ago
vitae

How can I make a multi-line tooltip?

now i have a tooltip with one word inside, i want new words/sentences to be added to this tooltip under a certain condition. i tried using /n html, blade but nothing helped. usually they are just written as a normal string (screenshot 1) The tooltip is on ToggleColumn
No description
2 Replies
Adam Holmes
Adam Holmes2mo ago
Have you tried using a closure instead i.e.
$something->tooltip(fn() => new HtmlString('Some<br>HTML<br>Content'));
$something->tooltip(fn() => new HtmlString('Some<br>HTML<br>Content'));
Señor Nikola
Señor Nikola2mo ago
If that does not work check this out -> https://www.answeroverflow.com/m/1140560626691870761
tooltip - Filament
Hello I'm trying to render a tooltip in ideally html. This is in Table Builder version 2. I have installed @ryangjchandler/alpine-tooltip. I need to at least format the tooltip with new lines. I see where the tooltip div is rendered with x-tooltip.raw=. Is there any way to swap x-tooltip.raw= with x-tooltip.html in the tooltip() method?

Did you find this page helpful?