F
Filamentβ€’3mo ago
o.m

How do you add a tool-tip to an anchor tag in custom view?

I have a custom page and added a tooltip but it wasn't able to show. <a href="#" class="d-inline-block p-2 disabled" data-toggle="tooltip" title="Please remove all settings to delete section"><i class="fas fa-trash opacity-50"></i></a>
11 Replies
Matthew
Matthewβ€’3mo ago
to me it shows a tooltip
<a href="#" class="d-inline-block disabled p-2" data-toggle="tooltip" title="Please remove all settings to delete section"><i class="fas fa-trash opacity-50">This is a test</i></a>
<a href="#" class="d-inline-block disabled p-2" data-toggle="tooltip" title="Please remove all settings to delete section"><i class="fas fa-trash opacity-50">This is a test</i></a>
You need something in the <i> tag
o.m
o.mOPβ€’3mo ago
Like a text?
Matthew
Matthewβ€’3mo ago
No description
o.m
o.mOPβ€’3mo ago
It does finally show just not very quick enough
No description
o.m
o.mOPβ€’3mo ago
Is this the default functionality of tooltip? You hover it for like 2 sec then it shows
Matthew
Matthewβ€’3mo ago
Yeah. If you want the tooltips that filament uses, then you need Tippy
o.m
o.mOPβ€’3mo ago
Im not sure how to use it.. i am not using forms this time Is this a plugin?
Dennis Koch
Dennis Kochβ€’3mo ago
GitHub
GitHub - ryangjchandler/alpine-tooltip: Add tooltips to your Alpine...
Add tooltips to your Alpine 3.x components with a custom directive. - ryangjchandler/alpine-tooltip
Dennis Koch
Dennis Kochβ€’3mo ago
What kinda API is that data-toggle? πŸ€”
Matthew
Matthewβ€’3mo ago
Hey, I just copy pasted the code I got 🀷 πŸ˜‚
Dennis Koch
Dennis Kochβ€’3mo ago
Oh, it's just the title. So standard browser behaviour. I was confused by the data- stuff, which probably does nothing. Yes, that's the standard browser feature.

Did you find this page helpful?