Skip to content

Instantly share code, notes, and snippets.

@abishekrsrikaanth
Last active March 9, 2020 17:11
Show Gist options
  • Select an option

  • Save abishekrsrikaanth/9f0455f4b541871dd10c35ea4afa499e to your computer and use it in GitHub Desktop.

Select an option

Save abishekrsrikaanth/9f0455f4b541871dd10c35ea4afa499e to your computer and use it in GitHub Desktop.
<template>
<div>
<h1 class="text-90 font-normal text-2xl mb-6">{{groupTitle}}</h1>
<div class="card">
<table class="w-full table mb-6 py-3 px-6 ">
<thead>
<tr>
<th v-for="column in data.columns">{{column}}</th>
</tr>
</thead>
<tbody>
<tr v-for="row in data.data">
<td v-for="field in row" class="text-center">
{{field}}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment