Creating tables from scratch is a pain.
This is why there are many table plugins to let us add tables easily.
In this article, we’ll look at how to add tables to a Vue app with the vue-good-table plugin.
We can make the table group collapsible by changing the group-options
prop.
To do this, we can write:
<template>
<div>
<vue-good-table
:columns="columns"
:rows="rows"
:group-options="{
enabled: true,
collapsable: true
}"
></vue-good-table>
</div>
</template>
<script>
export default {
data() {
return {
columns: [
{
#javascript #programming #technology