type

defines new rendering type for the component

void type(object obj,object data);
obj
objectcomponent instance data
objecttype 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
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.