0.19.1 • Published 7 years ago
gridiron-core v0.19.1
gridiron
Lightweight grid framework built on top of react-virtualized / fixed-data-table for easy highly customizable grids generated from redux state.
Install
npm i -S gridiron
Usage
UserGrid.js
import React from 'react'
import { connect } from 'react-redux'
import ReactVirtualized from 'react-virtualized'
import { createGrid } from 'gridiron'
const { Grid } = createGrid({ React, connect, ReactVirtualized })
/** Create a grid to show users first name, last name, and age from redux */
export default props => (
<Grid
mapCols={
/** Map redux state to object with column name keys and header component values */
state => ({ first: <div>First Name</div>
, last: <div>Last Name</div>
, age: { render: <div>Age</div>, width: 100 }
})
}
mapRows={
/** Map redux state to grid rows. */
state => state.users.map(x => [x.first, x.last, x.age])
}
/>
)
Test
See gridiron's test project at gridiron-test
In active development, come back in a few days.
0.19.1
7 years ago
0.19.0
7 years ago
0.18.1
7 years ago
0.18.0
7 years ago
0.17.0
7 years ago
0.16.4
7 years ago
0.16.3
7 years ago
0.16.2
7 years ago
0.16.1
8 years ago
0.15.0
8 years ago
0.13.1
8 years ago
0.14.1
8 years ago
0.14.0
8 years ago
0.12.1
8 years ago
0.12.0
8 years ago
0.11.6
8 years ago
0.11.5
8 years ago
0.11.4
8 years ago
0.11.3
8 years ago
0.11.2
8 years ago
0.11.1
8 years ago
0.11.0
8 years ago
0.10.1
8 years ago
0.10.0
8 years ago
0.9.3
8 years ago
0.9.2
8 years ago
0.9.1
8 years ago
0.9.0
8 years ago
0.8.1
8 years ago
0.8.0
8 years ago
0.7.3
8 years ago
0.7.2
8 years ago
0.7.1
8 years ago
0.7.0
8 years ago
0.6.4
8 years ago
0.6.3
8 years ago
0.6.2
8 years ago
0.6.1
8 years ago
0.6.0
8 years ago
0.5.9
8 years ago