Compare commits

...
8 Commits
Author SHA1 Message Date
Tanner Linsley 82f3913034 2.2.3 2016-10-26 19:37:15 -06:00
Tanner Linsley cb3cc05a59 Fixed row references 2016-10-26 19:37:10 -06:00
Tanner Linsley e8146b5d14 2.2.2 2016-10-26 19:25:51 -06:00
Tanner Linsley eef59a559e Added stuff back to umd files array 2016-10-26 19:25:45 -06:00
Tanner Linsley 3b18e8c8c1 2.2.1 2016-10-26 19:18:51 -06:00
Tanner Linsley dd6b8af304 Ignore built files in git 2016-10-26 19:18:45 -06:00
Tanner Linsley f242d2f3f6 Fixed tbodystyle bug 2016-10-26 19:15:36 -06:00
Tanner Linsley 9dd0333571 Readme Update 2016-10-26 19:11:48 -06:00
7 changed files with 130 additions and 59 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
node_modules/
lib/
react-table.js
react-table.css
*.log
+8 -11
View File
@@ -81,6 +81,14 @@ Every React-Table instance requires you to set the `data` prop. To use client-si
These are the default props for the main react component `<ReactTable />`
```javascript
{
// General
pageSize: 20,
minRows: 0, // Ensure this many rows are always rendered, regardless of rows on page
// Text
previousText: 'Previous',
nextText: 'Next'
// Classes
className: '-striped -highlight', // The most top level className for the component
tableClassName: '', // ClassName for the `table` element
@@ -99,17 +107,6 @@ These are the default props for the main react component `<ReactTable />`
thStyle: {}, // style object for the `th` component
tdStyle: {}, // style object for the `td` component
paginationStyle: {}, // style object for the `paginination` component
//
pageSize: 20,
minRows: 0, // Ensure this many rows are always rendered, regardless of rows on page
// Global Column Defaults
column: { // default properties for every column's model
sortable: true,
show: true
},
// Text
previousText: 'Previous',
nextText: 'Next'
}
```
+105 -39
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+8 -2
View File
@@ -1,6 +1,6 @@
{
"name": "react-table",
"version": "2.2.0",
"version": "2.2.3",
"description": "A fast, lightweight, opinionated table and datagrid built on React",
"license": "MIT",
"homepage": "https://github.com/tannerlinsley/react-table#readme",
@@ -15,6 +15,12 @@
"datagrid"
],
"main": "lib/index.js",
"files": [
"lib/",
"react-table.js",
"react-table.css",
"media/*.png"
],
"scripts": {
"build:node": "babel src --out-dir lib --source-maps inline",
"build:css": "rm -rf react-table.css && stylus src/index.styl --use ./node_modules/nib/lib/nib.js --compress -o react-table.css",
@@ -41,7 +47,7 @@
"nib": "^1.1.2",
"npm-run-all": "^3.1.1",
"onchange": "^3.0.2",
"standard": "8.0.0",
"standard": "^8.0.0",
"stylus": "^0.54.5",
"uglifyify": "3.0.3"
},
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -367,7 +367,7 @@ export default React.createClass({
</TheadComponent>
<TbodyComponent
className={classnames(this.props.tbodyClassName)}
style={classnames(this.props.tbodyStyle)}
style={this.props.tbodyStyle}
>
{pageRows.map((row, i) => {
const rowInfo = {
@@ -398,11 +398,11 @@ export default React.createClass({
>
{typeof Cell === 'function' ? (
<Cell
value={row[column.id]}
value={rowInfo[column.id]}
{...rowInfo}
/>
) : typeof Cell !== 'undefined' ? Cell
: row[column.id]}
: rowInfo[column.id]}
</div>
</TdComponent>
)