v-datatable-plus
| Install | |
|---|---|
npm install v-datatable-plus |
|
| Latest Version: | 1.1.2 |
| Vue: | 3 |
| Last Updated: | Mar 29, 2026 |
| Links: | GitHub · npm |
Vuetify Datatable Plus
v-datatable-plus provides enhanced wrappers around Vuetify VDataTable and VDataTableServer.
Documentation
Find full documentation and live examples at the link above.
Highlights
- Header row filtering with typed filter modes (
FilterType,FilterMode) - Column menu for show/hide, freeze/unfreeze, and reorder
- Native column drag-and-drop (no external drag dependency)
- Optional right panel layout with
ResizeableSplitter - Works in both JavaScript and TypeScript projects
Requirements
- Vue 3
- Vuetify 3
TypeScript and JavaScript support
This package supports both JavaScript and TypeScript projects.
- JavaScript projects can use the package exactly as before.
- TypeScript projects get declaration files from the package build output.
- Typed constants are exported:
FilterTypeandFilterMode.
Installation
npm install v-datatable-plus
Latest Changes
- Column drag is now built in.
vuedraggableis no longer a dependency.columnMenuDragChangeremains available and emits amovedpayload withelement,oldIndex, andnewIndex.
Migration
- Repository migration guide: MIGRATION.md
- Documentation migration page: Migration
Vuetify auto-import note
If your app uses Vuetify auto-import/tree-shaking, components used inside external packages are not always detected automatically.
Register the required Vuetify components in your createVuetify setup (for example: VDataTable, VDataTableServer, VToolbar, VMenu, VList, VBtn, VCard, VIcon, VCheckboxBtn, VSelect, VPagination, VSpacer, VTextField).
Detailed setup examples are available in documentation/getting-started.md.
JavaScript usage
import { createApp } from 'vue';
import { createVuetify } from 'vuetify';
import 'vuetify/styles';
import 'v-datatable-plus/dist/v-datatable-plus.css';
import VDatatablePlusPlugin from 'v-datatable-plus';
import App from './App.vue';
const app = createApp(App);
app.use(createVuetify());
app.use(VDatatablePlusPlugin);
app.mount('#app');
TypeScript usage
import { createApp } from 'vue';
import { createVuetify } from 'vuetify';
import 'vuetify/styles';
import 'v-datatable-plus/dist/v-datatable-plus.css';
import VDatatablePlusPlugin, { FilterMode, FilterType } from 'v-datatable-plus';
import App from './App.vue';
const app = createApp(App);
app.use(createVuetify());
app.use(VDatatablePlusPlugin);
app.mount('#app');
const filterType: (typeof FilterType)[keyof typeof FilterType] = FilterType.Contains;
const filterMode: (typeof FilterMode)[keyof typeof FilterMode] = FilterMode.Types;
Public type imports (TypeScript)
import type {
DataTableHeader,
GroupByItem,
ItemsPerPageOption,
RowItem,
RowClickEventPayload,
ColumnMenuEventPayload,
SelectedRowValue,
} from 'v-datatable-plus';
const headers: DataTableHeader[] = [
{ key: 'name', title: 'Name', isShow: true, sortable: true },
{ key: 'age', title: 'Age', isShow: true, sortable: true, align: 'end' },
];
const rows: RowItem[] = [
{ id: 1, name: 'Alice', age: 32 },
{ id: 2, name: 'Bob', age: 28 },
];
const groupBy: GroupByItem[] = [{ key: 'name', order: 'asc' }];
const itemsPerPageOptions: ItemsPerPageOption[] = [{ value: 10, title: '10' }];
let selectedRow: SelectedRowValue = null;
function onRowClick(payload: RowClickEventPayload) {
selectedRow = payload.param?.item ?? null;
}
function onColumnMenuFixed(payload: ColumnMenuEventPayload) {
console.log(payload.element.key, payload.$event);
}
Typed wrapper component example
<script setup lang="ts">
import {
VDatatablePlus,
type VDatatablePlusProps,
type VDatatablePlusEmits,
type RowClickEventPayload,
} from 'v-datatable-plus';
const props = defineProps<VDatatablePlusProps>();
const emit = defineEmits<VDatatablePlusEmits>();
function onClickRow(payload: RowClickEventPayload) {
emit('click:row', payload);
}
</script>
<template>
<VDatatablePlus
v-bind="props"
@click:row="onClickRow"
@update:model-value="emit('update:modelValue', $event)"
@update:page="emit('update:page', $event)"
/>
</template>
Typed server wrapper example
<script setup lang="ts">
import {
VDatatableServerPlus,
type VDatatableServerPlusProps,
type VDatatableServerPlusEmits,
type RowClickEventPayload,
} from 'v-datatable-plus';
const props = defineProps<VDatatableServerPlusProps>();
const emit = defineEmits<VDatatableServerPlusEmits>();
function onClickRow(payload: RowClickEventPayload) {
emit('click:row', payload);
}
</script>
<template>
<VDatatableServerPlus
v-bind="props"
@click:row="onClickRow"
@update:model-value="emit('update:modelValue', $event)"
@update:page="emit('update:page', $event)"
@update:items-per-page="emit('update:itemsPerPage', $event)"
/>
</template>
License
Copyright (c) 2024 AnsariPro
Licensed under the MIT license.
Legal
Vuetify and the Vuetify logo are trademarks of Vuetify. This component was not created or endorsed by Vuetify.
Related Packages
A TypeScript-ready, UI-framework-independent data table for Vue 2.6+ with server...
OGrid Vuetify – Vuetify-based data grid with sorting, filtering, pagination, col...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.2 | 3.5.25 | ||
| 1.1.1 | 3.5.25 | ||
| 1.1.0 | 3.5.25 | ||
| 1.0.8 | ^3.5.13 | ||
| 1.0.7 | ^3.3.11 | ||
| 1.0.6 | ^3.3.11 | ||
| 1.0.5 | ^3.3.11 | ||
| 1.0.4 | ^3.3.11 | ||
| 1.0.3 | ^3.3.11 | ||
| 1.0.2 | ^3.3.11 | ||
| 1.0.1 | ^3.3.11 | ||
| 1.0.0 | ^3.3.11 | ||
| 0.1.3 | ^3.3.11 | ||
| 0.1.2 | ^3.3.11 | ||
| 0.1.1 | ^3.3.11 | ||
| 0.0.21 | ^3.3.11 | ||
| 0.0.20 | ^3.3.11 | ||
| 0.0.19 | ^3.3.11 | ||
| 0.0.18 | ^3.3.11 | ||
| 0.0.17 | ^3.3.11 | ||
| 0.0.16 | ^3.3.11 | ||
| 0.0.15 | ^3.3.11 | ||
| 0.0.14 | ^3.3.11 | ||
| 0.0.13 | ^3.3.11 | ||
| 0.0.12 | ^3.3.11 |