This repo is read-only and will be deprecated in v5+ in favor of monorepos. Post issues here. Happy coding! 🖥️💻
We have updated our latest version to support Svelte 5 following its official release. 🎉
Read more about the announcement here: Svelte 5 is Alive.
If you want to continue using Svelte 4, please switch to the svelte-4 branch or use version prior to 4.11.0.
Support Millions of cells and thousands of columns easy and efficiently for fast data rendering. Easy to use.
Demo and API • Key Features • How To Use • Installation • Docs • License
RevoGrid material theme.High Performance: Handles millions of cells in the viewport with a powerful core built by default.
Accessibility: Follows WAI-ARIA best practices.
Keyboard Support:
Lightweight: Minimal initial bundle size . Can be imported with polyfills or as a module for modern browsers.
Intelligent Virtual DOM: Smart row recombination to minimize redraws.
Virtual Scroll: Handles large datasets with infinite scroll.
Formula Support: Evaluate formulas in cell data.
Master Detail/Subtables/Forms: Expand rows to reveal child data.
Drag and Drop: Drag and drop in rows and columns.
Sorting: Multiple options, customizable per column, with advanced event handling.
Filtering:
Export: Export data to file.
Custom Sizes: Define custom sizes for columns and rows. Automatic sizing based on content.
Column Resizing: Adjust column widths.
Pinned/Sticky/Freezed Elements:
Grouping:
Cell Editing: In-place editing of cell data.
Cell Merging: Merge cells to form groups.
Customizations:
Column Types: More details
Range Operations:
Theme Packages:
Extensibility: Modern VNode features and tsx support for easy extension.
Trimmed Rows: Hide rows on demand.
Plugin System: Create custom plugins or extend existing ones easily.
Additional Customizations and Improvements: Explore hundreds of other small customizations and improvements in RevoGrid.
With NPM:
npm i @revolist/svelte-datagrid
With Yarn:
yarn add @revolist/svelte-datagrid;
// App.svelte
<script lang="ts">
import { RevoGrid, type ColumnRegular } from '@revolist/svelte-datagrid';
const source = [
{
name: '1',
details: 'Item 1',
},
{
name: '2',
details: 'Item 2',
},
];
const columns: ColumnRegular[] = [
{
prop: 'name',
name: 'First',
cellTemplate(h, { value }) {
return h('span', { style: { background: 'red' } }, value);
}
},
{
prop: 'details',
name: 'Second',
},
];
</script>
<main>
<RevoGrid {source} {columns}></RevoGrid>
</main>
2.0+: Introduced the plugin system, grouping, sorting, and filtering.
3.0+: Breaking changes introduced:
row
-> rgRow
col
-> rgCol
data-cell
-> rgCell
data-header-cell
-> rgHeaderCell
afterEdit
is now afteredit
. Check the API for details.4.0+: Breaking changes introduced. See the migration guide.
Redesigned type support:
- Removed deprecated namespaces:
- Before: RevoGrid.ColumnRegular
- Now: ColumnRegular
;
- Improved type import:
- Before: import { RevoGrid } from '@revolist/revogrid/dist/types/interfaces'
- Now: import { ColumnRegular } from '@revolist/revogrid'
.
- Changed viewport type names everywhere. For example, before: rowDefinitions: [{ type: "row", index: 0, size: 145 }]
, after: rowDefinitions: [{ type: "rgRow", index: 0, size: 145 }]
.
afterEdit
-> afteredit
.BeforeRowRenderEvent
. Check all events for details.Major improvements:
additionalData
for templates and editors. Prop
gives access to parent/root app context.What next?
We would like to extend our heartfelt gratitude to our sponsors for their generous support. Their contributions help us maintain and develop RevoGrid.
If you or your company would like to support the ongoing development of RevoGrid, please consider or use a Pro version. Your support will help us continue to improve the project and provide the best possible tool for the community.
Thank you for supporting RevoGrid! 🙏
By getting involved, you'll have the opportunity to enhance your skills, gain valuable experience, and make a significant impact on an innovative project. Your contribution, no matter how big or small, is valuable.
MIT