Skip to content

Advice on utilizing slots for a data table component #912

Closed Answered by boardfish
janko asked this question in Q&A

You must be logged in to vote

Finally got around to this, apologies for the delay! Here's a really basic starting point. Note that lambda slots can use methods from the component itself, so you could use that to inform how the row components are constructed in renders_many :rows and manually specify which fields on the model you'd like to use.

Hope that's helpful to you! If you find it raises more questions than answers, feel free to respond here and I'll help where I can.

Replies: 2 comments 3 replies

You must be logged in to vote
2 replies
@boardfish

@boardfish

Answer selected by joelhawksley

You must be logged in to vote
1 reply
@robbevp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants