How does DataTables handle the a TH's title attribute?
How does DataTables handle the a TH's title attribute?
vol7ron
Posts: 43Questions: 11Answers: 0
https://datatables.net/reference/option/columns.title
The titles of columns are typically read directly from the DOM (from the cells in the THEAD element)
I suspect this refers to the column text and not the title attribute. When I attempt to apply the title attribute (as a quick hover popup), it doesn't seem to carry over to the rendered DataTable. I suspect this is expected, but now I'm curious if there is an alternative.
This discussion has been closed.
Answers
Nevermind -- the issue was 2-fold and primarily me.
I applied the title to the wrong place in the server side code; however, I also noticed if I used "data-title" (I was experimenting) that the column would override the text with it, which was an interesting to learn.