Hi,
In the context menu, can i create the insert row and remove row option with multiple names, with same insert and remove functionality.
Like i want insert function, insert name and remove function, remove name etc…with same insert and remove functionality.
i have created a custom context option for insert and remove like:
‘custom_item_three’ :
{
name: ‘insert failure mode’,
callback: function(key,selection)
{
this.alter(“insert_row”,selection.end.row()+1)
}
},
‘custom_item_six’ :
{
name: ‘remove failure mode’,
callback: function(key,selection)
{
var amount = selection.end.row() - selection.start.row() + 1;
this.alter(‘this.remove_row’, selection.start.row(), amount);
}
},
but i am getting a error, “Unable to get property ‘row’ of undefined or null reference”. How do i fix this?