How to create a reusable table component in Vue
I am working with Vue and Typescript, and I am having issues passing columns and data from a parent component into a table component.
Does anyone have a working example of a child table component that accepts columns and data as props?
Or, is there a more idiomatic way to accomplish a reusable table component that might involve column definition from within somehow?
2 Replies
other-emerald•2y ago
I don't have one in vue but I do in React. I actually watched this video and it helped me out a lot:
https://youtube.com/playlist?list=PLcuAByNrzwnj1az88-vpnwj-tDp4eCwXi&feature=shared
fascinating-indigoOP•2y ago
It looks like those videos are Javascript, and that's kinda the hangup for me is that yes with JS it works just fine and is easy, with Typescript I can't get the same code to play nicely.