protoUI and tabbar\\tabview

hi,

How can i use protoUI and tabbar at the same time?

example(try to remove 11-14 lines):https://snippet.webix.com/q3wyut2m

ps. you can use Russian language )

just don’t override existing view type using protoUI.
sometimes this leads to unexpected result because of webix inner logic.
create new one and use it in the code.
https://snippet.webix.com/9o2tzyfo

your way is very easy ), i would like to override method of “standard” control.

there is a hackish way.
but why you need this?
maybe there is a better solution.
because if you override a method in original class, all inherited classes (datepicker, combo etc) can be affected unexpectedly.

i have an existing project and i need to implement access to controls. My intended steps:

  1. have a collection of rules, for example [{id:controlId, hasAccess:true\false},{…}]
  2. override “global” method of control where i will change properties, for example: disable()\enable()

so, as result i will have min changes…

https://snippet.webix.com/9sy82lrx
this is the most simple way of overriding original methods.
but you really must know what you do.

thx.

I tried this one before, but I have no progress :slight_smile:

webix.ui.text.prototype.$prepareValue = function(v) {
return 123;
};