virtual-list icon indicating copy to clipboard operation
virtual-list copied to clipboard

Dynamic line height

Open guido-visser opened this issue 4 years ago • 0 comments

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>;

guido-visser avatar Sep 10 '20 07:09 guido-visser