Disabled Button PowerTip

Hello. I need to add some Powertip text with javascript on button when it is disabled but it won't add. if I enable button it adds that time. can you give me some ideas how to solve this problem?


I tried to add powertip text to parrent div of button, but in that case it only works when I hover on part of div, where disabled button is not and that part is really little.

mvp_badge
MVP
Solution

Hi Nino,

If I understood your use-case correctly, the below-mentioned approach can be a solution.

1) Define the below-mentioned custom style class definition in the Stylesheet

.btn_hover[disabled] {
    pointer-events: auto;
}

2) Set the same style class (e.g., btn_hover) to the disable button StyleClasses property

Demo screen: Title_DisableButton

I hope this helps you!


Kind regards,

Benjith Sam

thank u!

mvp_badge
MVP

You're welcome, Nino :)


Kind regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.