DataTables Editor must be initialised as a 'new' instance' Error Fix?

DataTables Editor must be initialised as a 'new' instance' Error Fix?

JackBodmanJackBodman Posts: 2Questions: 1Answers: 0

HI, I have been using the DataTables plugin for a while and am currently trying out the Editor trial before potentially upgrading. After adding all the editor files to my project, initializing the table now generates the error 'DataTables Editor must be initialized as a 'new' instance''.

After seeing this I changed my init code from:

var table = $('#Shifts').dataTable.Editor ...

to this:

var table = new $('#Shifts').dataTable.Editor ...

However this is still returning the same error and I can't find any info for it on the forums or docs.

Thanks in Advance for any suggestions.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.