Skip to content

Dynamic Tooltip for an action button #488

Answered by d2x
gopalwebdev asked this question in Q&A
Discussion options

You must be logged in to vote

You could probably do it with microtip.

Rule::button('toggleBillStatus')
              ->when(fn($model) => !$model->is_billed)
              ->setAttribute('class', 'fas fa-check-circle text-dark p-2 border-0 bg-transparent')
              ->setAttribute('aria-label', 'Unbilled'),
              ->setAttribute('role', 'tooltip'),
              ->setAttribute('data-microtip-position', 'top'),

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by luanfreitasdev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #486 on June 26, 2022 19:48.