New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-virtualized-multi-grid

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-virtualized-multi-grid

react-virtualized-multi-grid

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

react-virtualized-multi-grid

react-virtualized-multi-grid

NPM JavaScript Style Guide

Install

npm install --save react-virtualized-multi-grid

Demo

Demo and playground are available here

Versions

CHANGELOG

Usage Example

import React from 'react';
import ReactVirtualizedMultiGrid from 'react-virtualized-multi-grid';

const rows = [
  {
    id: '1',
    name: 'test'
  },
  {
    id: '2',
    name: 'test 2'
  }
];

const columns = [
   {
    width: 80,
    label: '#',
    dataKey: 'index',
    sort: false,
    align: 'center',
    render: (value, rowData, rowIndex) => rowIndex + 1,
  },
  {
    width: 80,
    label: 'Id',
    dataKey: 'id',
    sort: true,
  },
  {
    width: 100,
    label: 'Name',
    dataKey: 'name',
    sort: true,
  },
]

const [value, onRowClick] = React.useState('');
<ReactVirtualizedMultiGrid rowKey="id" rows={rows} columns={columns} value={value} onRowClick={onRowClick} />

Multiple select items Example

import React from 'react';
import TextInput from 'react-virtualized-multi-grid';

const [value, onRowClick] = React.useState('');
<ReactVirtualizedMultiGrid rowKey="id" rows={rows} columns={columns} value={value} onRowClick={onRowClick} multiple />

Develop

In the project directory, you can run:

npm install

npm start

Runs the app in the development mode.
Open http://localhost:6006 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

License

MIT © bonnv79

Keywords

react-virtualized

FAQs

Package last updated on 30 Aug 2021

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