Get the enable/disable state of Datatable button
Get the enable/disable state of Datatable button
williamay53
Posts: 7Questions: 5Answers: 0
Hi,
There are https://datatables.net/reference/api/button().enable() to enable/disable button. But how can I retrieve the enable/disable state of a button? I cannot find it in the api page. Thx
William
This discussion has been closed.
Answers
Hi @williamay53 ,
DataTables adds the class
disabled
to the button - so you can check the button for that. In this example here, you would use:Cheers,
Colin