Showing tooltip over column header

Showing tooltip over column header

nagyalexnagyalex Posts: 3Questions: 2Answers: 0

Hello, can anyone help?

Description of problem:
Currently we use abbreviations inside column headers, otherwise the table would be too wide. So for a column name "Aggregated number of visitor conversions" we show only "ANVC", which is terrible considering we have dozens of such headers.

Is there a way to a have small helper - when I hover the column header cell it would show tooltip with the full name? Even something simple would suffice like natively supported tooltip like for images / titles.

Thanks

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    You could use the abbr HTML tag with a title attribute. The MDN documentation has an example.

    The other option is to use a tooltip library (popper for example would work) in combination with a mousehover event.

    Allan

Sign In or Register to comment.