Error when using autoFill().disable()
Error when using autoFill().disable()
I'm attempting to use the autoFill.disable() API method per this example: https://datatables.net/reference/api/autoFill().disable()
However, I get a 'Uncaught TypeError: table.autoFill is not a function' when clicking the toggle button and the autofill functionality is not disabled. I think it must be a library that I am missing, but I am not seeing it.
Here is an example: http://live.datatables.net/zezavede/1/edit
Is there a way to dynamically disable autofill?
This question has an accepted answers - jump to answer
Answers
The example page has the same error:
https://datatables.net/extensions/autofill/examples/initialisation/enableDisable.html
Kevin
You need to be using the nightly version of AutoFill. The documentation you linked to states "Since: AutoFill 2.2.0", but 2.1.3 is the one being used in your example which is why it isn't working.
2.2.0 hasn't been released yet. The documentation and examples shouldn't have been updated yet - sorry about that.
Allan
Thank you for showing me my error, that did the trick.