Page 1 of 1

can I add a tooltip to an element from css?

Posted: Fri Nov 08, 2019 11:57 am
by eduarddrenth
Can I, using oxy_ functions for example, add a tooltip to an element?

Re: can I add a tooltip to an element from css?

Posted: Mon Nov 11, 2019 2:07 am
by Radu
Hi,

We do not have such a feature but it makes sense, I added an internal issue for it and we'll update the forum thread when such an improvement becomes available.
Using Oxygen's Java API it would probably be feasible to implement something like this from a plugin.

Regards,
Radu

Re: can I add a tooltip to an element from css?

Posted: Mon Nov 11, 2019 2:09 pm
by eduarddrenth
Thanks, looking forward, this will help me make author mode more usable for our lexicographers and linguists.

Re: can I add a tooltip to an element from css?

Posted: Tue Jan 07, 2020 1:26 pm
by Radu
Hi,

Quite late on this, but as a workaround you can display some HTML inside the element content:

https://www.oxygenxml.com/doc/versions/ ... tmlcontent

You can also use the ":hover" CSS pseudo class to show the HTML documentation when the end user hovers over the element.

Regards,
Radu

Re: can I add a tooltip to an element from css?

Posted: Sun Aug 02, 2020 12:53 pm
by eduarddrenth
Experimented with adding html, but this makes the view very restless, a tooltip would be ideal here and probably in other situations as well

Re: can I add a tooltip to an element from css?

Posted: Wed Aug 12, 2020 3:08 pm
by Radu
Hi,

I understand, I will try to increase the issue's priority.

Regards,
Radu

Re: can I add a tooltip to an element from css?

Posted: Wed Aug 12, 2020 6:11 pm
by eduarddrenth
Perhaps I can contribute, since I am a experienced java/xml/html/css/etc. developer

Re: can I add a tooltip to an element from css?

Posted: Thu Aug 13, 2020 7:15 am
by Radu
Hi,

The implementation needs to be done in our own code, not with an API extension. But thanks for the offer.
We do have Java API which would allow allow an Oxygen plugin or framework customization to add a tooltip customizer:
so it is possible for someone to implement an Oxygen Java-based plugin to control the tooltip when hovering over a certain node.
If you want more details about Oxygen plugins:
https://www.oxygenxml.com/doc/versions/ ... guide.html

Regards,
Radu