GithubHelp home page GithubHelp logo

revolist / revogrid Goto Github PK

View Code? Open in Web Editor NEW
2.7K 35.0 167.0 16.71 MB

Powerful virtual data grid smartsheet with advanced customization. Best features from excel plus incredible performance ๐Ÿ”‹

Home Page: https://revolist.github.io/revogrid

License: MIT License

TypeScript 88.54% HTML 2.78% JavaScript 0.83% SCSS 7.85%
grid revo-grid reactive vuegrid virtual-grid excel-grid infinity-grid virtual-scroll webcomponent stenciljs

revogrid's Introduction

RevoGrid

Latest Version on NPM Software License Tree shaking Tree shaking

Powerful data grid component built with StencilJS.

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

Material grid preview

RevoGrid material theme.

Key Features

  • Millions of cells viewport with a powerful core in-build by default;
  • Keyboard support with excel like focus;
  • Super light initial starter Min size. Can be imported with polifill or as module for modern browsers;
  • Intelligent Virtual DOM and smart rgRow recombination in order to achieve less redraws;
  • Sorting (multiple options, can be customized per column and advanced with events);
  • Filtering
    • Predefined system filters;
    • Preserve existing collection;
    • Custom filters (extend existing system filters with your own set);
  • Export to file;
  • Custom sizes per Column and Row;
  • Column resizing;
  • Autosize support (Column size based on content);
  • Pinned/Sticky/Freezed:
    • Columns (define left or right);
    • Rows (define top or bottom);
  • Grouping:
    • Column grouping (Nester headers);
    • Row grouping (Nested rows);
  • Cell editing;
  • Customizations:
    • Header template;
    • Cell template (build your own cell view);
    • Cell editor (apply your own editors and cell types);
    • Cell properties (build you own properties around rendered cells);
  • Column types;
    • Text/String (default);
    • Number;
    • Select;
    • Date;
    • Custom (take any type as template and create your own extended style);
  • Drag and drop rows;
  • Range operations:
    • Selection;
    • Edit;
  • Theme packages:
    • Excel like (default)
    • Material (compact, dark or light);
  • Copy/Paste (copy/paste from Excel, Google Sheets or any other sheet format);
  • Easy extenation and support with modern VNode features and tsx support;
  • Trimmed rows (hide rows on demand);
  • Plugin system (create your own plugins or extend existing one, it's transparent and easy);
  • Automated size calculation;
  • Hundred others small customizations and improvements RevoGrid.

Overview

Framework friendly

The RevoGrid component helps represent a huge amount of data in a form of data table "excel like" or as list. On top of it it provides inbuilt range edit or per cell edit, keyboard support and custom edit and render features. Works in any major framework or with no framework at all.

Chrome Firefox Safari Opera Edge
Latest โœ” Latest โœ” Latest โœ” Latest โœ” Latest โœ”

Installation

The library published as a scoped NPM package in the NPMJS Revolist account. Check for more info on our demo side.

With NPM:

npm i @revolist/revogrid --save;

With Yarn:

yarn add @revolist/revogrid;

Framework

Basic Usage

Grid works as web component. All you have to do just to place component on the page and access it properties as an element. We provide many ways to integrate our grid in your project:

Vanilla Js grid usage

const grid = document.querySelector('revo-grid');
const columns = [
  { prop: 'name', name: 'First column' },
  {
    prop: 'details',
    name: 'Second column',
    cellTemplate: (createElement, props) => {
      return createElement('div',
        {
          style: { backgroundColor: 'red' },
          class: { 'inner-cell': true },
        },
        props.model[props.prop] || '',
      );
    },
  },
];
const items = [{ name: 'New item', details: 'Item description' }];
grid.columns = columns;
grid.source = items;

Framework usage VueJs example

<template>
  <v-grid :source="rows" :columns="columns"/>
</template>

<script>
import VGrid from '@revolist/vue-datagrid';
export default {
  name: 'App',
  data() => ({
      columns: [
        { prop: 'name', name: 'First' },
        { prop: 'details', name: 'Second' },
      ],
      rows: [{ name: '1', details: 'Item 1' }],
    };
  }),
  components: { VGrid },
};
</script>

Versions

  • 2.0+ Introduced plugin system, grouping, sorting and filtering.
  • 3.0+ Breaking changes introduced version. New component loading and esm modules. Bootstrap support and much more.

Contributing

If you have any idea, feel free to open an issue to discuss a new feature, or fork RevoGrid and submit your changes back to me.

License

MIT


revogrid's People

Contributors

alinoil avatar anandvc avatar buroni avatar dependabot[bot] avatar drs-t0m0 avatar ellis2323 avatar franz-josef-kaiser avatar islarky88 avatar javazwt avatar kyrylka avatar leyenda avatar m2a2x avatar mikproto avatar pablocaselas avatar revolist avatar saionjisekai avatar shatkovski avatar stanislavsky69 avatar sujeetpillai avatar turtlak12345 avatar wglas85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

revogrid's Issues

Subtables

Provide inner subtibables functionality

Tab issue during edit

If you press Tab key during edit viewport get broken because of incorrect focus cell.
Need prevent scroll on tab.

Enter data on tab

Would be great if you could enter data on tab, so that if you want to enter data from left to right, you easily can.

Range support across fixed areas

For simplification initially range selection works across one area and doesn't spread to fixed/pinned areas. Each area is independent table. Need to add support for cross area range.

Column auto-width support

Double click on column edge should lead for column width calculation based on number of symbols of the longest element.

Sorting.

Add sorting to columns. Initial data source affected for start.

Finish edit callback

Currently custom editor has only save edit callback, where is new changes applied, would be good to have just close edit callback.

Custom Editors

Do you have any examples on setting up a datepicker or any other custom component as a cell editor?

Overlay issue

Screen Shot 2020-07-29 at 11 44 32 PM

At some point after multiple scrolling overlay issue appears.

Scroll on keyboard selection

Hi! Awesome library!!

Would be great if you could support scroll on ARROW_DOWN, ARROW_UP, ARROW_LEFT & ARROW_RIGHT when necessary.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.