remove row
remove row
Andreas S.
Posts: 208Questions: 74Answers: 4
in Editor
I want to give a message output in the remove modal window. I would add a column of the selected row to the message.
how could i do this?
buttons: [
{
extend: 'remove',
editor: delEditor,
text: '<i class="fas fa-trash"></i>',
titleAttr: 'Delete uploaded file',
className: 'text-red bold',
action: function( e, dt, button, config ) {
delEditor.remove(
dt.rows( { selected: true } ),
{
title: '<i class="fas fa-trash text-red bold"></i> Delete uploaded file',
buttons: [
'Remove',
{ text: 'Cancel', action: function() { this.close(); } }
],
message: message_txt[0]
}
)
}
}
],
Andreas
This discussion has been closed.
Answers
I have found a example and that solve my problem:
https://editor.datatables.net/examples/api/removeMessage.html
Andreas