itemHeight

sets the height of an item

number|string itemHeight;

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"
});


Default value:

37

Related samples

Details

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.

See also
Back to top