aoColumnDefs sTitle -> TableTools CSV export
aoColumnDefs sTitle -> TableTools CSV export
robertbrower
Posts: 158Questions: 1Answers: 0
I'm using aoColumnDefs sTitle to conditionally change long header text to shorter text, e.g. "This is too long for a TH" changes to "This is too...".
The underlying HTML table TH element has the title attribute set to "This is too long for a TH" so that the tool tip will show the entire text.
But when I export to CSV using TableTools, the truncated sTitle is used.
How can I get TableTools to use the original text from the TH element, and not what is specified in sTitle?
Many, many thanks.
Robert
The underlying HTML table TH element has the title attribute set to "This is too long for a TH" so that the tool tip will show the entire text.
But when I export to CSV using TableTools, the truncated sTitle is used.
How can I get TableTools to use the original text from the TH element, and not what is specified in sTitle?
Many, many thanks.
Robert
This discussion has been closed.
Replies
It will not wrap. So i want to shorten it and provide the tool tip.
Anyone at all?
Thanks!
Can you offer me any advice on this?
Thanks.
Robert
So there is currently no way to override that in TableTools. You'd need to modify the TableTools source to read from an attribute:
[code]
dt.aoColumns[i].nTh.getAttribute('title');
[/code]
for example.
Allan
I'll just load my custom Table tools js file for this one page.
Thanks!
Robert
Allan
Robert