Last active
August 4, 2019 05:03
-
-
Save avi12/e409d129e0298476a4ee96cbfcb1fe44 to your computer and use it in GitHub Desktop.
Example of my working <v-data-table>in Vuetify 2.0.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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