mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-10-04 01:06:54 +00:00
add work on row docs
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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)!!!
|
||||
|
||||
-----
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"getting-started"
|
||||
],
|
||||
"Basic Usage": [
|
||||
"basic-row",
|
||||
"basic-column",
|
||||
"basic-sort",
|
||||
"basic-row-select",
|
||||
|
||||
Reference in New Issue
Block a user