type

an object that specifies items presentation

object|string type;

Example

unitlist = webix.ui({
    view:"unitlist",
    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's items (the default name of the applied class is 'default').
  • height - (number) the height of an item in the component.
  • templateHeader - (function) defines the content of a UnitList header; the function receives one parameter - the value (string), by which list items are grouped.
  • headerHeight - (number) sets the height of a UnitList header.
  • width - (number) the width of the items list.
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript website framework and page of lists in javascript product.