Multi select and perform action in a specific column.

Multi select and perform action in a specific column.

BalaKrishnanDhanuskodiBalaKrishnanDhanuskodi Posts: 45Questions: 17Answers: 0
edited November 2017 in Editor

Happy Evening one and all,

Following is the code used to perform an action on one row of a specific column to Mark 'Yes' or 'No' - how can I do this for multiple instances(more than one row).

{
// to mark yes
extend: "selectedSingle",
text: "<i class='fa fa-check text-success'></i>Mark Yes ",
action: function ( e, dt, node, config ) {
editor
.edit( table.row( { selected: true } ).index(), false )
.set( 'active', 'Yes' )
.submit();
}


{
// to mark no
extend: "selectedSingle",
text: "<i class='fa fa-check text-success'></i>Mark No",
action: function ( e, dt, node, config ) {
editor
.edit( table.row( { selected: true } ).index(), false )
.set( 'active', 'No' )
.submit();
}


Answers

This discussion has been closed.