Skip to content

Instantly share code, notes, and snippets.

@avi12
Last active August 4, 2019 05:03
Show Gist options
  • Save avi12/e409d129e0298476a4ee96cbfcb1fe44 to your computer and use it in GitHub Desktop.
Save avi12/e409d129e0298476a4ee96cbfcb1fe44 to your computer and use it in GitHub Desktop.
Example of my working <v-data-table>in Vuetify 2.0.0
<v-data-table :headers="headers"
:items="users"
disable-sort
hide-default-header
item-key="user"
show-select
v-model="usersSelected">
<template v-slot:item="props">
<td>{{props.item.username}}</td>
</template>
</v-data-table>
<script>
...
data() {
return {
headers: [{text: "Name", sortable: false}],
users: [{
username: "USERNAME",
url: "URL"
}],
usersSelected: []
};
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment