How do i set the title on column?

How do i set the title on column?

sleepingtigersleepingtiger Posts: 13Questions: 8Answers: 0

If i have a DataTable on a page (already drawn/instantiated) how can i programatically add a title?
For example
function(AjaxResponse){
myDataTable.column('ColumnA:name').title = "First Name"
...

Answers

  • allanallan Posts: 61,449Questions: 1Answers: 10,055 Site admin

    There is no API for setting the title at this time.

    There was recently a plug-in created for reading the title - you could perhaps modify it to do the inverse and set the title.

    Allan

  • sleepingtigersleepingtiger Posts: 13Questions: 8Answers: 0

    Ok so i am able to set it by simply creating a span and setting the value using plain ol jQuery. <th><span id='txtColumnName'>...

    Once again thank you! Love your work!

  • allanallan Posts: 61,449Questions: 1Answers: 10,055 Site admin

    That would work as well :-)

    Allan

This discussion has been closed.