Skip to main content

itemHeight

Optional. Sets the height of an item

itemHeight?: number | string;

Default value: "auto" - adjusts to the height of the content

Example

// sets the height of an item as a number
const dataview = new dhx.DataView("dataview_container", {
itemHeight:30
});

// sets the height of an item as a string value
const dataview = new dhx.DataView("dataview_container", {
itemHeight:"30px"
});

Related sample: Dataview. Setup Dataview item height

Note that the value of the itemHeight property is ignored when you use a template for DataView items.

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