Skip to main content

itemHeight

sets the height of an item

itemHeight?: number | string;
Default value: 37

Example

// sets the height of an item as a number
var list = new dhx.List("list_container", {
itemHeight:30
});

// sets the height of an item as a string value
var list = new dhx.List("list_container", {
itemHeight:"30px"
});

Related sample: List. Setup list item height

The usage of the CSS calc() function within the itemHeight property is not possible.

The default height of a list item is 37 when the virtual property is set to true. See the Configuration article for more information.