mirror of
https://github.com/gosticks/react-table.git
synced 2026-10-06 07:46:54 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8146b5d14 | ||
|
|
eef59a559e | ||
|
|
3b18e8c8c1 | ||
|
|
dd6b8af304 | ||
|
|
f242d2f3f6 | ||
|
|
9dd0333571 |
+3
-1
@@ -1,3 +1,5 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
|
lib/
|
||||||
|
react-table.js
|
||||||
|
react-table.css
|
||||||
*.log
|
*.log
|
||||||
|
|||||||
@@ -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 />`
|
These are the default props for the main react component `<ReactTable />`
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
// General
|
||||||
|
pageSize: 20,
|
||||||
|
minRows: 0, // Ensure this many rows are always rendered, regardless of rows on page
|
||||||
|
|
||||||
|
// Text
|
||||||
|
previousText: 'Previous',
|
||||||
|
nextText: 'Next'
|
||||||
|
|
||||||
// Classes
|
// Classes
|
||||||
className: '-striped -highlight', // The most top level className for the component
|
className: '-striped -highlight', // The most top level className for the component
|
||||||
tableClassName: '', // ClassName for the `table` element
|
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
|
thStyle: {}, // style object for the `th` component
|
||||||
tdStyle: {}, // style object for the `td` component
|
tdStyle: {}, // style object for the `td` component
|
||||||
paginationStyle: {}, // style object for the `paginination` 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'
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Vendored
+105
-39
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+7
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-table",
|
"name": "react-table",
|
||||||
"version": "2.2.0",
|
"version": "2.2.2",
|
||||||
"description": "A fast, lightweight, opinionated table and datagrid built on React",
|
"description": "A fast, lightweight, opinionated table and datagrid built on React",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://github.com/tannerlinsley/react-table#readme",
|
"homepage": "https://github.com/tannerlinsley/react-table#readme",
|
||||||
@@ -15,6 +15,12 @@
|
|||||||
"datagrid"
|
"datagrid"
|
||||||
],
|
],
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
|
"files": [
|
||||||
|
"lib/",
|
||||||
|
"react-table.js",
|
||||||
|
"react-table.css",
|
||||||
|
"media/*.png"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:node": "babel src --out-dir lib --source-maps inline",
|
"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",
|
"build:css": "rm -rf react-table.css && stylus src/index.styl --use ./node_modules/nib/lib/nib.js --compress -o react-table.css",
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -367,7 +367,7 @@ export default React.createClass({
|
|||||||
</TheadComponent>
|
</TheadComponent>
|
||||||
<TbodyComponent
|
<TbodyComponent
|
||||||
className={classnames(this.props.tbodyClassName)}
|
className={classnames(this.props.tbodyClassName)}
|
||||||
style={classnames(this.props.tbodyStyle)}
|
style={this.props.tbodyStyle}
|
||||||
>
|
>
|
||||||
{pageRows.map((row, i) => {
|
{pageRows.map((row, i) => {
|
||||||
const rowInfo = {
|
const rowInfo = {
|
||||||
|
|||||||
Reference in New Issue
Block a user