protoUI

merges several objects and creates a new Webix component

object protoUI(object target,mixins ...mixins);
targetobjectthe object to extend. It receives the new properties
...mixinsmixinsone or many mixin objects
objectthe new view (target object) with the new properties

Example

webix.protoUI({
    name:"editlist"
}, webix.ui.list, webix.EditAbility);
 
var list = webix.ui({
    view:"editlist",
    editable:true,
    editor:"text",
    editValue:"title"
});

Related samples

Details

The method merges the objects passed to it as parameters. The objects are merged in a certain order and together create a new Webix component.

The method is similar to proto, but proto is not used to create new views.

See also
Back to top