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 items (the default name of the applied class is 'default').
- height - (number) the height of an item in the component.
- template - (function, string) an html template that will define item presentation 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