Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First Added the following line into plugin removeRow
- if(typeof labels.onRemove == 'function')
- {
- labels.onRemove.call(undefined, $(this).parents('tr').index());
- }
- Then added a callback function at removeRow call at Handsontable like that.
- RemoveRow : {
- 'remove' : remove_row,
- 'onRemove' : function(row_index) {
- console.log('Row Index = ' + row_index);
- if(row_index > 1 )
- {
- // My Call back code
- }
- }
- }
- instead of using RemoveRow : true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement