loading...

Using Vuetify v-data-table's interface

yasunoritanaka profile image Yasunori Tanaka ・1 min read

In .vue file

<template>
  <v-data-table :headers="header" :options.sync="options"> ... </v-data-table>
</template>

<script lang="ts">
import { DataOptions, DataTableHeader } from 'vuetify/types'

interface DataType {
  options: DataOptions
  headers: DataTableHeader[]
}

export default Vue.extend({
  data(): DataType {
    options: {}
    headers: []
  }
})

You can import interfaces from vuetify/types.

Discussion

pic
Editor guide