Skip to content

Multiple items questions #17

Discussion options

You must be logged in to vote

@diegogutierrez-dev Hi! :)

So, for your use case n°1, currently it isn't possible, though I'm exploring the possibility to do it internally in v3. I would say that, at the moment, the only way to do it is by iterating and grouping the items by yourself as you said (inside renderItem you will have to render 2 items instead as one).

{
  id: "doube-item",
  renderItem: (
   <div> 
      <Comp />
      <Comp />
   </div>
  )
}

For your use case n°2, as above, at the moment it isn't possible. You can do it by using the hook useListenToCustomEvent inside your carousel components (this way you can customize your component in any way you want).

Here's an example of how it's being used -> https:/…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@diegogutierrez-dev
Comment options

Answer selected by Emiliano-Bucci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants