type

an object that specifies items presentation

object|string type;

Example

list = webix.ui({
    view:"list",
    type:{
        height:50
    }
});

Related samples

Details

Attributes of the type object:

  • css - (string) the name of a css class that will be applied to component items (the default name of the applied class is 'default').
  • height - (number) the height of an item in the component.
  • templateItem - (function, string) an html template that defines data that will be presented in the component.
  • templateGroup - (function, string) an html template that defines data that will be presented in the group header in the collapsed state.
  • templateBack - (function, string) an html template that defines data that will be presented in the group header in the expanded state.
  • width - (number) the width of the items list.

As a function, templateItem, templateGroup and templateBack takes a data item object.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript ui library and page of list in javascript product.