Feature #12789
openAllow tooltips to be shown/hidden from code
0%
Description
In JavaScript, there are the showToolTip()/hideToolTip()
function, in ToolTip.js
. This needs to be callable from the code.
That way developers are able to control when information can be shown or hidden from the code.
We should also consider what does functionally implies. If we force it to show, so we still want it to show up on hover? Do we still want it to go away after a while?
I believe this merits a setToolTipOptions(Wt::WFlags<ToolTipOption> options)
that will control the different possibilities.
The functionality as it is now, showing it on hover, and it disappearing after a while will remain the default.
Mind that this is only likely to work on non-native tooltips. When using native (setting title="..."
), it is managed by the browser, and a cursory Google search doesn't lead me to believe this can be accessed from JS.
Updated by Matthias Van Ceulebroeck 5 months ago
- Assignee set to Romain Mardulyn
Updated by Matthias Van Ceulebroeck 4 months ago
- Status changed from New to InProgress
Updated by Matthias Van Ceulebroeck 4 months ago
- Status changed from InProgress to Review
- Assignee changed from Romain Mardulyn to Matthias Van Ceulebroeck
Updated by Matthias Van Ceulebroeck 4 months ago
- Tracker changed from Bug to Feature
Updated by Matthias Van Ceulebroeck about 1 month ago
- Target version changed from 4.11.1 to 4.12.0