vue-virtual-scroller icon indicating copy to clipboard operation
vue-virtual-scroller copied to clipboard

Customize tags

Open aesfer opened this issue 6 years ago • 2 comments
trafficstars

Right now we can customize the element tags via DynamicScrollerItem.tag but there does not seem to be a way to customize the wrapping element tag.

This is important for accessibility reasons. In my case the elements need to be li and the wrapper needs to be an ol or at least have the attribute role="list".

Browsing the repo history I saw this used to be supported via mainTag, containerTag and contentTag. Is this something you intend to support again?

Cheers :)

aesfer avatar Jun 13 '19 01:06 aesfer

I too would like this. I think there might be some other accessibility concerns though as the announced length of the list will be wrong. Maybe an aria-label or aria-description would solve that.

mattgreenfield avatar Apr 03 '20 08:04 mattgreenfield

I'm actually trying to implement a virtualized table with this, and there's no way to specify that the wrapper of the virtualized list should be a table. This would be pretty awesome.

EricMcWinNer avatar Jul 06 '22 21:07 EricMcWinNer

Implemented

Akryum avatar Oct 18 '22 09:10 Akryum

Could we also get a rootTag prop, so we can set a table please @Akryum ? :)

skjnldsv avatar Feb 05 '23 15:02 skjnldsv