Access to functions also available with CLOUDTABLES ?
Access to functions also available with CLOUDTABLES ?
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
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