protoUI

merges the contents of several objects together into the first object and creates from it a new view

object protoUI(object target,mixins ...mixins);

Parameters

targetobjectthe object to extend. It receives the new properties
...mixinsmixinsone or many mixin objects

Returns

objectthe new view (target object) with the new properties

Example

webix.protoUI({
    name:"mylist"
}, webix.ui.list, webix.ActiveContent);
 
var list = webix.ui({
    view:"mylist"
});

Details

The method is similar to proto. The only difference is that protoUI creates a new view based on another view and proto doesn't. As for the rest, it's the same.

See also
Back to top