Treetable - how to remove an icon

Treetable.
How to remove(disable) the icon the “plus” or
subtree that was not disclosed ?

To remove this icon, you can customize the template as follows:

template:function(obj, common){                  
   if (obj.id == "1")  // condition
      return common.treetable(obj, common)+obj.value;
   return common.space(obj, common)+common.folder(obj, common)+obj.value;        
}

But in this case, there’s still a possibility to open/close the branch programmatically via

treetable.open(id)

To prevent it at all, you can use theonBeforeOpen event:

on:{
   onBeforeOpen(id){    
      if ( id !== "1")
         return false;
   }
}

http://webix.com/snippet/71ac5110