is it possible to get data of title instead of data of td
is it possible to get data of title instead of data of td
naeemsaif0407
Posts: 8Questions: 3Answers: 0
@allan help?
This discussion has been closed.
Answers
Can you clearly state the issue and ideally link to a test case showing the problem and the configuration you are using please?
However, why not use
cell().node()
and access the title attribute from the node?Allan
I want to use Data that is present in the title tag instead of it's value, is it possible.. for example
'<td title="$ ' + item.TotalPrice+ ' USD">$ ' + item.Price + ' USD</td>'
Datatable will show item.Price as its the value of the <td>
But i want it to show item.TotalPrice
Perhaps I'm being thick, but if you want the
TotalPrice
to be shown in the TD cell, why wouldn't you just putTotalPrice
in place ofPrice
?Allan
this was just an example.. Now let me explain you...
I have long text in rows which exceeds the width of the cells , so i have abstracted the text width.... (i.e. this is an exam.....) and i have kept the complete text in the tooltip on hover.
now I export the data into pdf , it copies (this is an examp.....) i want it to copy the complete text which is present in the title tag(used for tooltip) of the row.
@allan
I would suggest you do the inverse and use the ellipsis renderer. That will also help with SEO (if that is important).
Allan
@allan thanks. Its a new thing for me and seems great! :)