Uncaught ReferenceError

Uncaught ReferenceError

tableFantableFan Posts: 10Questions: 7Answers: 0
edited July 2021 in DataTables

hello,
this error is shown to me all the time, can someone help me?

Uncaught ReferenceError: table is not defined

editor.inline(table.cells(this.parentNode, '*').nodes());

Answers

  • kthorngrenkthorngren Posts: 21,262Questions: 26Answers: 4,934
    edited July 2021

    The table.cells( .. ).nodes() is using the variable table to access the Datatables API. See the API docs for details. Somewhere in your script you need to assign the variable. It can be assigned when when you initialize Datatables or you can get an instance of the API at anytime as described in the docs.

    If you need further help please provide a link to your page or a test case showing the issue so we can see what you have and help debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

Sign In or Register to comment.