passing values to editor api method
passing values to editor api method
IT Marcaria
Posts: 13Questions: 5Answers: 1
Hi:
In https://editor.datatables.net/examples/simple/inTableControls.html
How pass a value from line 79 to line 46?
My case:
// Edit record
$('#example').on('click', 'a.editor_edit', function (e) {
e.preventDefault();
var VALUE_TO_RECEIVE = VAR_TO_PASS; //line 46
editor.edit( $(this).closest('tr'), {
title: 'Edit record',
buttons: 'Update'
} );
} );
...
{
targets: 5,
render: function (data, type, row, meta) {
var VAR_TO_PASS = "hello";
return '<a href="" class="editor_edit">Edit</a>'; //***VAR_TO_PASS?*** line 79
}
}
Thanks!
This discussion has been closed.
Answers
hi, i found the solution.
The example was:
http://live.datatables.net/laqifihe/1/edit
My case: