mirror of
https://github.com/gosticks/react-table.git
synced 2026-07-01 18:10:02 +00:00
Update README.md (#584)
* Update README.md Missing " on Features list, Extra comma removed * Update README.md Added space for component uniformity.
This commit is contained in:
committed by
Tanner Linsley
parent
1e849df999
commit
cf0f8bb729
10
README.md
10
README.md
@@ -38,7 +38,7 @@
|
||||
- Pivoting & Aggregation
|
||||
- Minimal design & easily themeable
|
||||
- Fully controllable via optional props and callbacks
|
||||
- <a href="https://medium.com/@tannerlinsley/why-i-wrote-react-table-and-the-problems-it-has-solved-for-nozzle-others-445c4e93d4a8#.axza4ixba" target="\_parent">"Why I wrote React Table and the problems it has solved for Nozzle.io</a> by Tanner Linsley
|
||||
- <a href="https://medium.com/@tannerlinsley/why-i-wrote-react-table-and-the-problems-it-has-solved-for-nozzle-others-445c4e93d4a8#.axza4ixba" target="\_parent">"Why I wrote React Table and the problems it has solved for Nozzle.io"</a> by Tanner Linsley
|
||||
|
||||
## [Demos and examples](http://react-table.js.org/#/story/simple-table)
|
||||
|
||||
@@ -343,7 +343,7 @@ Or just define them as props
|
||||
```
|
||||
|
||||
## Columns
|
||||
`<ReactTable/>` requires a `columns` prop, which is an array of objects containing the following properties
|
||||
`<ReactTable />` requires a `columns` prop, which is an array of objects containing the following properties
|
||||
|
||||
```javascript
|
||||
[{
|
||||
@@ -358,7 +358,7 @@ Or just define them as props
|
||||
Aggregated: JSX | String | Function // Used to render aggregated cells. Defaults to a comma separated list of values.
|
||||
Pivot: JSX | String | Function | cellInfo => ( // Used to render a pivoted cell
|
||||
<span>
|
||||
<Expander/><PivotValue /> // By default, will utilize the the PivotValue and Expander components at run time
|
||||
<Expander /><PivotValue /> // By default, will utilize the the PivotValue and Expander components at run time
|
||||
</span>
|
||||
),
|
||||
PivotValue: JSX | String | Function // Used to render the value inside of a Pivot cell
|
||||
@@ -480,7 +480,7 @@ If your data has a field/key with a dot (`.`) you will need to supply a custom a
|
||||
|
||||
|
||||
## Column Header Groups
|
||||
To group columns with another header column, just nest your columns in a header column. Header columns utilize the same header properties as regular columns.
|
||||
To group columns with another header column, just nest your columns in a header column. Header columns utilize the same header properties as regular columns.
|
||||
```javascript
|
||||
const columns = [{
|
||||
Header: 'Favorites',
|
||||
@@ -930,7 +930,7 @@ If you would like to help develop a suggested feature follow these steps:
|
||||
- Auto-build files as you edit with `$ yarn run watch`
|
||||
- Implement your changes to files in the `src/` directory
|
||||
- Run the <a href="https://github.com/tannerlinsley/react-story">React Story</a> locally with `$ yarn run docs`
|
||||
- View changes as you edit `docs/src`,
|
||||
- View changes as you edit `docs/src`
|
||||
- Submit PR for review
|
||||
|
||||
#### Scripts
|
||||
|
||||
Reference in New Issue
Block a user