virtual-list
virtual-list copied to clipboard
Dynamic line height
Is it possible to have a dynamic line height or am I overlooking the feature?
What I would like to have:
const dynLineHeight = (row: any, index: number) => {
if(index % 2 === 0){
return 50;
} else {
return 25;
}
}
<List data={[0, 1, 2]} height={200} itemHeight={this.dynLineHeight} itemKey="id">
{index => <div>{index}</div>}
</List>;