Delete row from data table

i need to delete a row from a data table by clicking trash icon in every row as the last column.
by clicking trash icon it should delete the respective row

thanks in advance

$$(yourtableid).remove($$(yourtableid).getLastId)

Please check the snippet:

http://webix.com/snippet/c2bdf9f1

And the related Docs:

http://docs.webix.com/datatable__templates.html#builtintemplates

http://docs.webix.com/api__link__ui.datatable_onclick_config.html

Hello, this snippet doesn’t work with webix after version 6.0.

Hello @ljing ,
Starting from version 6.0 , the built-in set of icons was reduced to the icons used in the Webix library with a custom prefix (wxi).
Therefore (in the example above) you need to attach the onClick event to the class name “wxi-trash” instead “fa-trash”:

  onClick:{
    "wxi-trash":function(event, id, node){
      this.remove(id)
    }

Please take a look at the snippet:
https://snippet.webix.com/u8jh159n