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 numbervar list = new dhx.List("list_container", {     itemHeight:30});
// sets the height of an item as a string valuevar 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.