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 )

Tagged:

Comments

  • edited February 9

    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.

  • edited February 10

    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.

  • edited February 11

    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 :)

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

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!