How to disable some tree levels from click

Hello,
it possible disable some tree levels from click?

Thanks, Warm Regards
Daniele

Hello,

Did you mean selection or just onClick event handling?

If you do not want call some function for certain tree itee, you can add level validation in your onItemClick handler:

on:{
   onItemClick: function(id){
         var level = this.getLevel(id);
         if(level!=1){
             //your code here
         }
   }
}

it is not working, getLevel is not defined.

@sdsd22 the method was deprecated.
In the loaded dataset, each item of the hierarchic structure has three ‘system’ attributes, one of them is$level.

Please check the following snippet for details: https://webix.com/snippet/28a48235