There are two tables. In the first load list (title, number, other). I need by mouse click in the first table add the selected item in the second table and reduce the amount of this element in the first one.
Please check the add/remove API.
You can use something like
// in the datatable1 on:{ } handler
onItemClick:function(id){
var item = this.getItem(id);
$$("datatable2").add(item);
this.remove(id)
}