Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81999

Custom delete button

$
0
0
Hi,

I want to create custom cancel/save/delete buttons.

in the "fnInitComplete" call, I configure editor.buttons.

How should I configure a delete button? The Save and Cancel seem to work.

{
    "label": "Delete",
    "className":"btn btn-inverse",
    "fn": function () {
      this.message( "Are you sure you want to remove this row?" );
this.remove( row_to_delete, 'Delete row', {
  "label": "Confirm",
  "fn": function () { this.submit(); }
} );
    }
    }

Kind regards,

Nathan

Viewing all articles
Browse latest Browse all 81999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>