Get the enable/disable state of Datatable button
Get the enable/disable state of Datatable button
![williamay53](https://secure.gravatar.com/avatar/e5a6361888294cff5dd9a60a38c7fb80/?default=https%3A%2F%2Fvanillicon.com%2Fe5a6361888294cff5dd9a60a38c7fb80_200.png&rating=g&size=120)
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