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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.