protoUI

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

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:"editlist"
}, webix.ui.list, webix.EditAbility);
 
var list = webix.ui({
    view:"editlist",
    editable:true,
    editor:"text",
    editValue:"title"
});

Related samples

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