type

defines new rendering type for the component

void type(object config);

Parameters

configobjecttype 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