how to remove sTitle in colums?
how to remove sTitle in colums?
magiceye
Posts: 4Questions: 1Answers: 0
when create datatables, the columns are auto generated {sTitle: something} object.
how to remove this object?
it makes my table two same title in one table.
thank you!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.
Information on how to create a test page, if you can't provide a link to your own page can be found here.
Thanks,
Allan
the <cols2> returns [{title:sid,title:date....}]
but when $('#example').datatable({columns:cols2}), it returns [{title:sid,sTitle:sid....}]
Obviously, auto generated sTitle, it makes two same titles.
And also i try to push sTitle(the same as auto generated object), always return two headers..............
i post some images.
Thanks
Allan
I saw someone using <plain text> to showing code.
Can you tell me how to use that?
Thanks again.
Take a look at the instructions at the bottom of any Comment box.
Kevin
Thanks Kevin.
Thanks for the code snippets. Could you post a link to a page showing the issue so it can be debugged please.
Allan