npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

v-datatable-plus

v1.1.2

Published

This is a derived component which enahaced features of Vuetify VDataTable and VDataTableServer. It's also expose a ResizeableSplitter component which is useful for split horizontal contents with or without user interaction.

Readme

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: FilterType and FilterMode.

Installation

npm install v-datatable-plus

Latest Changes

  • Column drag is now built in.
  • vuedraggable is no longer a dependency.
  • columnMenuDragChange remains available and emits a moved payload with element, oldIndex, and newIndex.

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.