Add custom HTML for data rows generated using VueJS DataTables plugin

Add custom HTML for data rows generated using VueJS DataTables plugin

kkochanskikkochanski Posts: 2Questions: 1Answers: 0

I like the current documentation - https://datatables.net/manual/vue, although it's missing a case of packing the data into custom html. Also, across the internet I didn't find any examples.

I can generate the HTML at the server and return it, although then I'm missing a point having HTML completely managed by VueJS.

At current state of VueJS plugin, is it possible to have custom HTML for various columns?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 62,524Questions: 1Answers: 10,273 Site admin
    Answer ✓

    At current state of VueJS plugin, is it possible to have custom HTML for various columns?

    Not yet, although I am working on that. The next release of the DataTables Vue component will feature a named slot per column that you can use to define a component to be used for that column.

    There are one or two outstanding points that I want to address (orthogonal data options specifically) before wrapping it up. Also it will use DataTables 2 which is nearing release.

    Allan

  • kkochanskikkochanski Posts: 2Questions: 1Answers: 0

    Awesome, thank you for an answer. Also, you're doing a great job. Appreciate your lib! Cheers.

  • allanallan Posts: 62,524Questions: 1Answers: 10,273 Site admin

    Many thanks - very much appreciated :)

    Allan

Sign In or Register to comment.