passing values to editor api method

passing values to editor api method

IT MarcariaIT 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!

Answers

This discussion has been closed.