-
Q: Version: Code: <div id="app">
<v-app id="inspire">
<v-data-table :headers="headers" :items="desserts">
<template v-slot:item.d_name="{ item }">
<v-chip color="red" dark>
{{ item.d_name }}
</v-chip>
</template>
<template v-slot:item.calories="{ item }">
<v-chip color="red" dark>
{{ item.calories }}
</v-chip>
</template>
<template v-slot:item.theFat="{ item }">
<v-chip color="red" dark>
{{ item.theFat }}
</v-chip>
</template>
</v-data-table>
</v-app>
</div> new Vue({
el: "#app",
vuetify: new Vuetify(),
data() {
return {
//testing obj key
headers: [
{
text: "(underline)",
value: "d_name"
},
{ text: "lowercase", value: "calories" },
{ text: "Uppercase", value: "theFat" }
],
desserts: [
{
d_name: "underline",
calories: "tolower",
theFat: "toUpper"
}
]
};
}
}); |
Beta Was this translation helpful? Give feedback.
Answered by
KaelWD
Apr 16, 2022
Replies: 2 comments
-
See #10002 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dpes8693
-
thanks to KaelWD Keyword: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #10002