New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@revolist/revogrid

Package Overview
Dependencies
Maintainers
1
Versions
537
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@revolist/revogrid

Virtual reactive data grid component - RevoGrid.

  • 1.5.31
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7K
decreased by-6.91%
Maintainers
1
Weekly downloads
 
Created
Source

RevoGrid

Latest Version on NPM Software License

Virtual grid implementation based on webcomponent using StencilJs. Handles millions of rows and columns fast and efficiently. Works in any major framework (VueJs, React, Ember, Angular) or with no framework at all.


Features

  • Millions of cells virtual viewport scroll with a powerful core is in-build by default. Intelligent Virtual Dom;
  • Column and Row custom sizes;
  • Column resizing;
  • Pinned columns (columns are always on the left or on the right of the screen);
  • Pinned row (rows are always at the top or at the bottom);
  • Column grouping;
  • Custom header renderer;
  • Custom cell renderer templates (build your own cell view);
  • Cell editing;
  • Custom cell editor (apply your own editors and cell types);
  • Custom cell properties;
  • Drag and drop rows;
  • Column sorting;
  • Range selection;
  • Theme packages;
  • Range edit(experimental new feature);
  • Easy extenation and support with modern VNode features and tsx support;
  • Multiple others useful features RevoGrid.

Content

Overview

The RevoGrid component helps represent a huge amount of data in a form of data table. Check for more details RevoGrid page.

ChromeFirefoxSafariOperaEdge
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.

npm i @revolist/revogrid --save;

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.

<!DOCTYPE html>
<html>
<head>
    // node_modules path
    <script src="node_modules/@revolist/revogrid/dist/revo-grid/revo-grid.js"></script>
    // or with unpkg
    <script src="https://cdn.jsdelivr.net/npm/@revolist/revogrid@latest/dist/revo-grid/revo-grid.js"></script>
    

    // Alternatively, if you wanted to take advantage of ES Modules, you could include the components using an import statement. Note that in this scenario applyPolyfills is needed if you are targeting Edge or IE11.
    <script type="module">
      import { defineCustomElements } from 'https://unpkg.com/@revolist/revogrid@latest/loader/index.es2017.js';
      defineCustomElements();
    </script>
</head>
<body>
    <revo-grid class="grid-component"/>
</body>
</html>
const grid = document.querySelector('revo-grid');
const columns = [
    {
        prop: 'name',
        name: 'First column'
    },
    {
        prop: 'details',
        name: 'Second column',
        cellTemplate: (h, props) => {
          return h('div', {
            style: {
              backgroundColor: 'red'
            },
            class: 'inner-cell'
          }, props.model[props.prop] || '');
        }
    }
];
const items = [{
    name: 'New item',
    details: 'Item description'
}];

grid.columns = columns;
grid.source = items;

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.

Keywords

FAQs

Package last updated on 23 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc