DEV Community

Denis Koronets
Denis Koronets

Posted on Edited on

Vue3 Data Grid - Free & Open source

Hey there guys. I'd like to say a few words about open source package for vue3 I've recently pushed to npm.


Lightweight Vue 3 data grid (needs Vue 3.4+). Install with npm install li-grid.

Features:

  • Filtering, sorting and pagination happen on your server, all inside one small component.
  • Works with any API: you write one async dataLoader function that gets the filters, sort and page, and returns { rows, pagination }.
  • Loads data by itself when it first appears, and again when the user sorts, changes page or clicks Load.
  • Sortable columns: users click a column header to sort.
  • Smart pagination that shows gaps (…) between page numbers, so large datasets stay readable.
  • Built-in filters: text, dropdown, number range and date range. Users can add them as they go.
  • Show/hide columns: users can hide columns, and the grid remembers their choice in the browser.
  • Column options: formatting, alignment and columns that stay fixed while scrolling.
  • Custom templates (slots) for any cell or header.
  • Translations: English and Ukrainian are included, or you can pass your own.
  • Theming and styling, including dark mode and a layout for mobile.
  • Apache 2.0 license. Published on npm as li-grid.

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

Nice work — the server-side filtering, sorting and pagination all inside one small component is the part that caught my eye, since most grids I've used either do everything client-side or make you wire the plumbing yourself. One thing I'm curious about: with the async dataLoader firing on sort, page change and filter, do you debounce rapid filter typing, or does each keystroke send its own request? Asking because on a slow connection those requests could stack up fast.