table cell multirows
-
how is it possible to build a table with column (s) with multi-row cells?
-
with slots:
https://quasar.dev/vue-components/table#Example--Virtual-scroll-with-multiple-rows-for-a-data-row
<template v-slot:body="props"> <q-tr :props="props" :key="`m_${props.row.index}`"> <q-td colspan="100%"> this is row 1 </q-td> </q-tr> <q-tr :props="props" :key="`e_${props.row.index}`"> <q-td colspan="100%"> this is row 2 </q-td> </q-tr> </template>
-
@dobbel
I meant that in the cell “Frozen Yogurt " there was also " This is the second row generated from the same data”,
keeping the column width the same.
it was probably best that I specify a multi-line cell -
@frankz what you need is rowspan=“2” on the ‘name’ td ( e.g. Frozen Yochurt) of a table. Like this:
https://www.w3schools.com/code/tryit.asp?filename=GHE965NIU4JJ
-
But it doesn’t wrap, I have to insert a <BR>
-
I found this and will try it, it should work.
https://forum.quasar-framework.org/topic/844/word-wrap-using-in-datatables -