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

Implementation of Child Rows #24

Open
mesos001 opened this issue Aug 29, 2023 · 2 comments
Open

Implementation of Child Rows #24

mesos001 opened this issue Aug 29, 2023 · 2 comments

Comments

@mesos001
Copy link

Hi all,

The basic tables are working as follows.
https://stackblitz.com/edit/datatables-net-vue3-simple?file=src%2FApp.vue

However, how can "Child Rows" be implemented?
https://datatables.net/extensions/staterestore/examples/customisation/childRows.html

We can't use a Vue for in the template to display the HTML for the table body...

@AllanJard
Copy link
Contributor

As in you want to display Vue components inside the child row? You'd need to create a root Vue element and pass it to the render function (apologies if I'm getting the Vue terminology wrong).

I need to look into exactly how to do that myself! I'm certain it is possible, I'm just not sure what the right incantation is.

@mesos001
Copy link
Author

Hi AllanJard,

Thank you for the answer.

Using the render function solved the problem!
The code is messy, but I'll leave it below.

https://stackblitz.com/edit/child-rows?file=src%2FApp.vue

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

No branches or pull requests

2 participants