type

defines new rendering type for the component

void type(object obj,object data);

Parameters

objobjectcomponent instance
dataobjecttype configuration

Example

webix.type(webix.ui.list, {
   name:"myItems",
   template:"Item #name#, from #origin#"
});
 
// defined type can be used during view creating
 
webix.ui({ view:"list", type:"myItems" })

See also
Back to top