olton / Metro-UI-CSS

Impressive component library for expressive web development! Build responsive projects on the web with the first front-end component library in Metro Style. And now there are even more opportunities every day!
http://metroui.org.ua/
MIT License
7k stars 1.97k forks source link

How can i remove metro ui table row using table component api? #1825

Closed Jakirhosen closed 2 years ago

xscode-auto-reply[bot] commented 2 years ago

Thanks for opening a new issue. The author has been notified and will review it as soon as possible. For urgent issues and priority support, visit https://xscode.com/olton/Metro-UI-CSS or Patreon

olton commented 2 years ago

You can use methods deleteItem(fieldIndex, value) or deleteItemByName(fieldName, value)

var table = Metro.getPlugin(element, "table");
table.deleteItemByName("id", 123).draw();
Jakirhosen commented 2 years ago

Thanks. But i want to remove only one specific row when click delete button.

olton commented 2 years ago

use field with unique values

Jakirhosen commented 2 years ago

Ok, Thanks.