I am using datatable in my react project. How to rename the column title on performing some action?
I am using datatable in my react project. How to rename the column title on performing some action?

in DataTables
Eg:
Initially my table has two columns as below:
Name age
After some action, I want to change the title as like this
Name. age < 20
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can use
column().header()
to get the node, which you can then change the text with:Please see example here,
Colin
Thanks a lot. It worked.