C
C
Cyril2020-08-12 21:50:04
Vue.js
Cyril, 2020-08-12 21:50:04

How to make a table component in VUE?

It is necessary to make a table component so that it can be passed not only an array or an object with string data, but in each cell a different markup consisting of other components, for example.
I can't think of a way to do this right now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-08-12
@SH8DER

Use slots separate for each row cell. The slot name contains the name of the corresponding table column; default content - the value is displayed as is; takes an object with string data as a parameter. For example .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question