diff --git a/docs/basic-row.md b/docs/basic-row.md new file mode 100644 index 0000000..429e3b1 --- /dev/null +++ b/docs/basic-row.md @@ -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!** \ No newline at end of file diff --git a/docs/table-props.md b/docs/table-props.md index aedfa8e..28ffa5d 100644 --- a/docs/table-props.md +++ b/docs/table-props.md @@ -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) => { ``` -## rowClasses = [String | Function] +## rowClasses - [String | Function] Custom the style of table rows: ```js diff --git a/website/blog/2018-01-24-new-version-0.1.0.md b/website/blog/2018-01-24-new-version-0.1.0.md index 703fb08..2b1d283 100644 --- a/website/blog/2018-01-24-new-version-0.1.0.md +++ b/website/blog/2018-01-24-new-version-0.1.0.md @@ -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)!!! ----- diff --git a/website/i18n/en.json b/website/i18n/en.json index 3efb1fe..c86535c 100644 --- a/website/i18n/en.json +++ b/website/i18n/en.json @@ -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", diff --git a/website/sidebars.json b/website/sidebars.json index 99105b3..8641156 100644 --- a/website/sidebars.json +++ b/website/sidebars.json @@ -5,6 +5,7 @@ "getting-started" ], "Basic Usage": [ + "basic-row", "basic-column", "basic-sort", "basic-row-select",