vue-virtual-scroller
vue-virtual-scroller copied to clipboard
Customize tags
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 :)
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.
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.
Implemented
Could we also get a rootTag prop, so we can set a table please @Akryum ? :)