It is sometimes useful for me to implement a new version of a webix method that starts with “_”. A good example is the _pattern() method of the “text” view.
The problem is that it will not work when I use the minified version of webix (ie: the non debug version). This is because all methods that start with “_” is obfuscated.
Is it possible to override these methods so that they also work with the minified version?
The examples in that article override methods and properties like defaults, $init, $getSize, $setSize, etc. I was just hoping that I could do that with a method like webix.ui.text.prototype._pattern() too.
Unfortunately, there’s no way to modify an existing ‘private’ method. But if we talk about the custom component, you can create your own method for any purpose.
As a tiny example, here’s the formatted text input with a custom value_setter:
This setter will automatically translate the value into the needed format. Also, the detailed process of creating a custom component is described in the corresponding article.