How to disable/grey-out an individual element of a tree (that has no checkbox) in webix ?

I want to grey out and disable some elem in my tree data. This snippet: https://snippet.webix.com/34dd3474

disables the checkbox from being clicked but I want the selection to be disabled for that item while selection for others are allowed.

Comments

  • edited January 4

    Hello @arcadia11,

    disables the checkbox from being clicked but I want the selection to be disabled for that item while selection for others are allowed.

    You can prevent the selection process entirely via the onBeforeSelect event handler by checking the current state of the to-be-selected item. Here is a small sample - https://snippet.webix.com/upjq4zv2.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion