Getting row data in editor event
Getting row data in editor event
Link to test case: http://live.datatables.net/pinigova/4/edit
Description of problem: I want to show row data from the clicked row in the title of the edit form. I want to do this by using the open Editor event and then using the editor.title() method only when action = 'edit'.
However, i am having trouble accessing the row data of the row to be editted. Using the suggested methods table.rows({selected: true}) and table.row(this).data() don't work (as far as i can tell) because it's not a DataTable event.
Any suggestions?
regards,
Niels
Replies
Found that using
modifiermethod gives the row being edited:https://editor.datatables.net/reference/api/modifier()
solved using:
table.row(editor.modifier()).data()