Documentation

protoUI

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

object protoUI(object target,object view, [object mixin1,object mixinN] );

Parameters

targetobjectthe object to extend. It receives the new properties
viewobjectthe name of the new view
mixin1objectan object that contains properties to merge in
mixinNobjectanother objects that contains properties to merge in

Returns

objectthe new view (target object) with the new properties

See also

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 the target object and proto doesn't. As for the rest, it's the same.

Back to top