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

Allow custom classes for list wrapper and list items.

Open dclause opened this issue 4 years ago • 3 comments

Hi !

Currently, the component auto adds vue-recycle-scroller__item-wrapper class on the wrapper element and vue-recycle-scroller__item-view on the items.

I know it is enought for styling via CSS.

But if you use some frameworks, for instance vuetify, it might be easier to actually add some of their existing classes to your wrapper and item. For such reasons, let me suggest this PR.

That allows for the new props wrapperClasses and itemClasses as per below :

<RecycleScroller
      :items="list"
      wrapper-classes="foo foobar"
      item-classes="bar buzz"
      ....
    >
      <BookmarkCardItem :data="item" />
</RecycleScroller>

dclause avatar Apr 19 '20 23:04 dclause

It would be incredibly cute if this PR could get reviewed ❤️

EricRabil avatar Oct 23 '20 05:10 EricRabil

Wouldnt that make this dependant on their framework?

patchthecode avatar Apr 14 '21 15:04 patchthecode

This issue never got resolved :(.

yellow1912 avatar Mar 19 '22 12:03 yellow1912