Hello,
Iam using alter(‘remove_row’) on custom Buttons and it working fine with:
$(‘.remove’).on(‘click’, function() {
hot1.alter("remove_row", hot1.getSelectedLast()[0]); });
but when one Button is clicked the rest of the buttons doesnt react
Even tried with:
afterRemoveRow: function (index,amount)
{
$('.remove').off;
$('.remove').on('click', function() {
hot1.alter("remove_row", hot1.getSelectedLast()[0]);
});
}
But still alter(‘remove_row’) only works once
With
$('.remove').on('click', function() {
alert(.getSelectedLast()[0]); });
alert shows several times with every button
Here is my colums config:
{
className : ‘remove-col’,
readOnly : true,
renderer : ‘html’
}