Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v-data_table header is not showing #17

Open
xarhang opened this issue Jul 26, 2024 · 0 comments
Open

v-data_table header is not showing #17

xarhang opened this issue Jul 26, 2024 · 0 comments

Comments

@xarhang
Copy link

xarhang commented Jul 26, 2024

here is ny code
`


<template #item.actions="{ item }">
<v-icon
small
class="mr-2"
@click="editItem(item)"
>
mdi-pencil

<v-icon
small
@click="deleteItem(item)"
>
mdi-delete




<script> import { ref } from 'vue'; export default { setup() { const headers = ref([ { text: 'My Path', value: 'path' }, { text: 'Permission', value: 'permission' }, { text: 'Rules', value: 'rules' }, { text: 'Actions', value: 'actions', sortable: false } ]); const items = ref([ { path: '/home', permission: 'read', rules: 'none' }, { path: '/settings', permission: 'write', rules: 'admin' } ]); const editItem = (item) => { console.log('Edit item:', item); }; const deleteItem = (item) => { console.log('Delete item:', item); }; return { headers, items, editItem, deleteItem }; } }; </script> <style scoped> /* Add your styles here */ </style>

`
and the datable is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant