{
extend: 'selected',
text: 'Duplicate',
action: function (e, dt, node, config) {
// Start in edit mode, and then change to create
editor
.edit(table.rows({ selected: true }).indexes(), {
title: 'Duplicate record',
buttons: 'Create from existing'
})
.mode('create');
}
},
Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.