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.
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!
You're welcome, Nino :)