You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dx-react-grid-grommet

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dx-react-grid-grommet

react grommet v2 theme for developer express dx-grid react

1.0.18
latest
Source
npmnpm
Version published
Weekly downloads
1
-90%
Maintainers
2
Weekly downloads
 
Created
Source

react grommet v2 theme for DevExpress dx-react-grid

Visit the Developer Express website for more information and examples.

Install

To install:

  $ npm install dx-react-grid-grommet

Documentation

Getting started

Examples

Live editable examples with grommet

Starter

import React from 'react';
import { Grommet, Box } from 'grommet';
import {
  Grid,
  Table,
  TableHeaderRow,
} from 'dx-react-grid-grommet';


export default class Demo extends React.PureComponent {
  constructor(props) {
    super(props);

    this.state = {
      columns: [
        { name: 'region', title: 'Region' },
        { name: 'sector', title: 'Sector' },
        { name: 'customer', title: 'Customer' },
        { name: 'product', title: 'Product' },
        { name: 'amount', title: 'Sale Amount' },
      ],
      rows: [
        {region: "South America", sector: "Banking", customer: "Beacon Systems", product: "EnviroCare Max", amount: 10294},
        {region: "North America", sector: "Health", customer: "Global Services", product: "EnviroCare", amount: 2895},
        {region: "North America", sector: "Health", customer: "Supply Warehouse", product: "EnviroCare Max", amount: 3503},
        {region: "Australia", sector: "Banking", customer: "Apollo Inc", product: "SolarOne", amount: 1379},
        {region: "Europe", sector: "Health", customer: "Beacon Systems", product: "SolarOne", amount: 2867},
        {region: "South America", sector: "Banking", customer: "Discovery Systems", product: "EnviroCare", amount: 3365},
        {region: "North America", sector: "Health", customer: "Renewable Supplies", product: "EnviroCare", amount: 6932},
        {region: "Europe", sector: "Telecom", customer: "Building M Inc", product: "EnviroCare", amount: 1135 },
      ],
    };
  }

  render() {
    const { rows, columns } = this.state;
    return (
      <Grommet>
        <Box>
          <Grid
            rows={rows}
            columns={columns}
          >
            <Table />
            <TableHeaderRow />
          </Grid>
        </Box>
      </Grommet>
    );
  }
}

Keywords

grommet

FAQs

Package last updated on 16 Mar 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