Socket
Socket
Sign inDemoInstall

dx-react-grid-grommet

Package Overview
Dependencies
Maintainers
1
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


Version published
Weekly downloads
32
increased by113.33%
Maintainers
1
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

FAQs

Package last updated on 06 Apr 2019

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