How to change title and messageTop after initialization
How to change title and messageTop after initialization
amineharbaoui
Posts: 8Questions: 2Answers: 0
Hi, I want to change the title and the messageTop after initialization of my datatable, Is there a way to do that ?
This discussion has been closed.
Answers
You can give
messageTop
as a function so your function would evaluate to a different result - e.g.:Allan
Thanks for your reply, but the function called only in the initialization, when I change
myVariable
after nothing changeIt appears to work as expected for me here: http://live.datatables.net/zileloso/1/edit .
Can you link to a test case showing the issue please.
Allan
So In my case I initialize my datatable first like you said I called a function in the messageTop and I called initDataTable first, this mean that the messageTop will display the default value, but I have function that triggered by clicking on some button and this function change the value of the variable returned by the fucntion called in the initialization, but with this approach nothing change I always get only the default value.
PS: I use DataTables in an Angular project version 6+