can I add a tooltip to an element from css?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
eduarddrenth
Posts: 12
Joined: Thu Oct 03, 2019 2:17 pm

can I add a tooltip to an element from css?

Post by eduarddrenth »

Can I, using oxy_ functions for example, add a tooltip to an element?
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
eduarddrenth
Posts: 12
Joined: Thu Oct 03, 2019 2:17 pm

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

Post by eduarddrenth »

Thanks, looking forward, this will help me make author mode more usable for our lexicographers and linguists.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
eduarddrenth
Posts: 12
Joined: Thu Oct 03, 2019 2:17 pm

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

Post 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
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu »

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
eduarddrenth
Posts: 12
Joined: Thu Oct 03, 2019 2:17 pm

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

Post by eduarddrenth »

Perhaps I can contribute, since I am a experienced java/xml/html/css/etc. developer
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply