add work on row docs

This commit is contained in:
AllenFang
2018-01-13 14:22:12 +08:00
parent 9c6536f1cc
commit e7b34feb89
5 changed files with 30 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
---
id: basic-row
title: Work on Row
sidebar_label: Work on Row
---
`react-bootstrap-table2` allow you to custom the row style/class/attributes and event on row(`tr`)
**[Live Demo For Rows](../storybook/index.html?selectedKind=Work%20on%20Rows)**
-----
## Row Style/Class
* [rowStyle](./table-props.html#rowstyle-object-function)
* [rowClasses](./table-props.html#rowclasses-string-function)
## Row Events
* [rowEvents](./table-props.html#rowevents-object)
## Row Attributes
**Coming Soon!**
+2 -2
View File
@@ -109,7 +109,7 @@ Makes table cells editable, please see [cellEdit definition](./cell-edit.md) for
## selectRow - [Object]
Makes table rows selectable, please see [selectRow definition](./row-selection.md) for more detail.
## rowStyle = [Object | Function]
## rowStyle - [Object | Function]
Custom the style of table rows:
```js
@@ -126,7 +126,7 @@ const rowStyle = (row, rowIndex) => {
<BootstrapTable data={ data } columns={ columns } rowStyle={ rowStyle } />
```
## rowClasses = [String | Function]
## rowClasses - [String | Function]
Custom the style of table rows:
```js
+1 -1
View File
@@ -35,7 +35,7 @@ For the first drop, I really can't finish all the legacy features, but I will wo
### Enhancement
- One table structure, never unalign again.
- Remote enhancement, please read [**it**](../docs/basic-remote.html).
- 100% easy to customize the header columns, cells and rows!!!
- 100% easy to customize the [**header columns, cells**](../docs/basic-column.html) and [**rows**](../docs/basic-row.html)!!!
-----
+2
View File
@@ -18,6 +18,8 @@
"Work on Remote": "Work on Remote",
"basic-row-select": "Row Selection",
"Row Selection": "Row Selection",
"basic-row": "Work on Row",
"Work on Row": "Work on Row",
"basic-sort": "Table Sort",
"Table Sort": "Table Sort",
"cell-edit-props": "Cell Editing Props",
+1
View File
@@ -5,6 +5,7 @@
"getting-started"
],
"Basic Usage": [
"basic-row",
"basic-column",
"basic-sort",
"basic-row-select",