How to use variable or function in constructor.

There many times where I want to use a variable or function in a constructor. Is this possible?

For example, in a datatable, I want ‘prender’ to be true or false depending on a variable. I can not seem to get this to work with either a variable or function. Are there any examples of how to do this?

I couldn’t figure out how to do it in the constructor, but I was able to solve my problem by using this.define inside of onAfterLoad

Hello,

It’s possible to use functions/variables in webix.ui. But you need to define a variable before the constructor. Please, check the example: https://snippet.webix.com/y6h4fchc

Ah, thank you