Skip to content

About

QGrid is a Quasar App Extension. It allows you to filter data for each column, Drag and Drop Rows and also allows you to filter data using header filters.

Resources

Stars

117 stars

Watchers

9 watching

Forks

Latest commit

 

History

230 Commits

Folders and files

Repository files navigation

QGrid

npm npm

QGrid is a free, open-source data grid for Quasar & Vue 3, shipped as a Quasar App Extension. It renders a regular QTable and adds the features business tables need — each one is a single prop.

Filtering Text, select, date-range & number-range column filters · Excel-like searchable header filters · global search
Data Grouping · footer totals (sum / avg / min / max / count / custom) · master/detail rows · inline editing with validation
Export Real .xlsx (typed cells, no dependency) and CSV — exactly what is on screen
Layout Column pinning (freeze left/right) & resizing · drag & drop rows and columns · column chooser · pinned rows · virtual scroll (50k+ rows) · sticky header
Interaction Multi-column sort (Shift + click) · right-click context menu · Ctrl/⌘ + C copy into Excel · status bar with selection totals
Advanced Save & restore state · server-side pagination, sort & column filters · cell/header-cell/detail slots · i18n labels

📖 Docs & live examples: https://next-quasar-qgrid.netlify.app

Install

quasar ext add qgrid

Works with quasar v2 and @quasar/app-vite v1 – v3 / @quasar/app-webpack v3 – v4. To remove it: quasar ext remove qgrid.

Not using Quasar CLI? npm i quasar-ui-qgrid and app.use(QGrid) — see ui/README.md.

Usage

<template>
  <q-grid
    :data="rows"
    :columns="columns"
    row_key="name"
    columns_filter
    header_filter
    global_search
    excel_download
    file_name="desserts"
  />
</template>

<script setup>
const columns = [
  { name: 'name', label: 'Dessert', field: 'name', align: 'left', sortable: true, show_filter: true },
  { name: 'category', label: 'Category', field: 'category', filter_type: 'select', grouping: true },
  { name: 'calories', label: 'Calories', field: 'calories', sortable: true, filter_type: 'number_range', aggregate: 'avg' },
  { name: 'added', label: 'Added', field: 'added', filter_type: 'date', date_format: 'DD/MM/YYYY' },
  { name: 'price', label: 'Price', field: 'price', format: v => '$' + v.toFixed(2), editable: true, edit_type: 'number', aggregate: 'sum' }
]

const rows = [
  { name: 'Frozen Yogurt', category: 'Ice cream', calories: 159, added: '12/01/2024', price: 3.5 },
  { name: 'Eclair', category: 'Pastry', calories: 262, added: '18/02/2024', price: 2.75 }
  // ...
]
</script>

See the API reference (or run quasar describe QGrid) and what's new in 1.2.

Repository

Folder
ui/ quasar-ui-qgrid — the component (npm test, npm run bench, npm run build)
app-extension/ quasar-app-extension-qgrid — the Quasar CLI App Extension
demo/ Documentation site & playground (@quasar/app-vite v3, uses ui/ sources directly)
cd demo && npm install && npm run dev   # docs on http://localhost:9000
cd ui && npm install && npm test        # unit tests

Sponsors

Support

If this helped you in any way, you can contribute to the package's long term survival by supporting me:

Be sure to check out my sponsor page.

Thank you so much!!!

License

MIT (c) pratikpatelpp802@gmail.com

About

QGrid is a Quasar App Extension. It allows you to filter data for each column, Drag and Drop Rows and also allows you to filter data using header filters.

Resources

Stars

117 stars

Watchers

9 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages