Remove rows using editor

Remove rows using editor

micamalemicamale Posts: 1Questions: 1Answers: 0
edited May 2016 in Free community support

Hi,
I have a problem using the editor.
I want to delete the selected rows and looking into your APIs I've seen this:
editor.message( "Are you sure you want to remove rows?" );
editor.remove( rows, 'Delete rows', {
"label": "Confirm",
"fn": function () { this.submit(); }
} );

Now I want to define rows as the selected rows.
Using rows=table.rows('.selected') works for only 1 row but it doesn't work for 2 or more rows.
How can I solve?

Thank for your time

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,916Questions: 1Answers: 10,150 Site admin
    Answer ✓

    Could you try simply:

    editor.remove( '.selected', 'Delete rows', {
      ...
    } );
    

    Thanks,
    Allan

  • alibabaalibaba Posts: 3Questions: 1Answers: 1

    It works. Thanks.

This discussion has been closed.