Access to functions also available with CLOUDTABLES ?

Access to functions also available with CLOUDTABLES ?

unternehmen24unternehmen24 Posts: 1Questions: 1Answers: 0

Hello Community,

do i have access to function like this in CLOUDTABLES too?

$(document).ready(function() {
oTable = $('#41b4f516-e17e-11ec-9578-4354242xxxx').dataTable();

Result is
Uncaught TypeError: $(...).dataTable is not a function

OR

var editor; // use a global for the submit and return data rendering in the examples

$(document).ready(function() {
editor = new $.fn.dataTable.Editor( {
ajax: {
create: {
type: 'POST',
url: '../php/rest/create.php'
},
edit: {
type: 'PUT',
url: '../php/rest/edit.php'
},
remove: {
type: 'DELETE',
url: '../php/rest/remove.php?id={id}'
}
},
table: "#example",
field

Thanks
Herbert

Answers

  • allanallan Posts: 61,667Questions: 1Answers: 10,096 Site admin

    Hi Herbert,

    Yes you can access the DataTable instance for an embedded CloudTable as described here (i.e. listen for ct-ready rather than document ready).

    You don't have access to change the Ajax options in Editor though - CloudTables controls that.

    Regards,
    Allan

Sign In or Register to comment.