Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: custom classes for list wrapper and list items. #397

Merged
merged 9 commits into from
Oct 14, 2022

Conversation

dclause
Copy link
Contributor

@dclause dclause commented Apr 19, 2020

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>

@EricRabil
Copy link

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

@patchthecode
Copy link

Wouldnt that make this dependant on their framework?

@yellow1912
Copy link

This issue never got resolved :(.

@Akryum Akryum changed the base branch from master to v1 October 14, 2022 15:08
@Akryum Akryum changed the title Allow custom classes for list wrapper and list items. feat: custom classes for list wrapper and list items. Oct 14, 2022
@Akryum Akryum merged commit 32b285d into Akryum:v1 Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants