diff --git a/docs/basic-celledit.md b/docs/basic-celledit.md index fd3486b..7a7d563 100644 --- a/docs/basic-celledit.md +++ b/docs/basic-celledit.md @@ -51,14 +51,14 @@ How user save their new editings? We offer two ways: * Column Level (Configure [column.editable](./column-props.html#columneditable-bool-function) as bool value) * Cell Level (Configure [column.editable](./column-props.html#columneditable-bool-function) as a callback function) -## Customize Style/Class -Currently, we only support the editing cell style/class customization, in the future, we will offer more customizations. - ### Editing Cell * Customize the editing cell style via [column.editCellStyle](./column-props.html#columneditcellstyle-object-function) * Customize the editing cell classname via [column.editCellClasses](./column-props.html#columneditcellclasses-string-function) +### Editor +* Customize the editor style via [column.editorStyle](./column-props.html#columneditorstyle-object-function) +* Customize the editor classname via [column.editoClasses](./column-props.html#columneditorclasses-string-function) ## Validation [`column.validator`](./column-props.html#columnvalidator-function) will help you to work on it! diff --git a/docs/column-props.md b/docs/column-props.md index 6ab588e..15c3051 100644 --- a/docs/column-props.md +++ b/docs/column-props.md @@ -35,6 +35,8 @@ Definition of columns props on BootstrapTable * [validator](#columnvalidator-function) * [editCellStyle](#columneditcellstyle-object-function) * [editCellClasses](#columneditcellclasses-string-function) +* [editorStyle](#columneditorstyle-object-function) +* [editorClasses](#columneditorclasses-string-function) * [filter](#columnfilter-object) * [filterValue](#columnfiltervalue-function) @@ -537,6 +539,12 @@ Or take a callback function } ``` +## column.editorStyle - [Object | Function] +This is almost same as [`column.editCellStyle`](#columneditcellstyle-object-function), but `column.editorStyle` is for custom the style on editor instead of cell(`td`). + +## column.editorClasses - [String | Function] +This is almost same as [`column.editCellClasses`](#columneditcellclasses-string-function), but `column.editorClasses` is for custom the class on editor instead of cell(`td`). + ## column.filter - [Object] Configure `column.filter` will able to setup a column level filter on the header column. Currently, `react-bootstrap-table2` support following filters: diff --git a/docs/table-props.md b/docs/table-props.md index 8e105b0..72cd9a0 100644 --- a/docs/table-props.md +++ b/docs/table-props.md @@ -25,6 +25,7 @@ title: BootstrapTable Props * [rowClasses](#rowclasses-string-function) * [rowEvents](#rowevents-object) * [defaultSorted](#defaultsorted-array) +* [defaultSortDirection](#defaultSortDirection-string) * [pagination](#pagination-object) * [filter](#filter-object) * [onTableChange](#ontablechange-function) @@ -175,6 +176,9 @@ const defaultSorted = [{ }]; ``` +## defaultSortDirection - [String] +Default sort direction when user click on header column at first time, available value is `asc` and `desc`. Default is `desc`. + ## pagination - [Object] `pagination` allow user to render a pagination panel on the bottom of table. But pagination functionality is separated from core of `react-bootstrap-table2` so that you are suppose to install `react-bootstrap-table2-paginator` additionally. diff --git a/website/blog/2018-04-01-verion-bump.md b/website/blog/2018-04-01-verion-bump.md new file mode 100644 index 0000000..a03daa2 --- /dev/null +++ b/website/blog/2018-04-01-verion-bump.md @@ -0,0 +1,25 @@ +--- +title: New Release (2018-04-01) +author: Allen Fang +authorURL: https://twitter.com/allenfang_tw +--- + +## Changed Packages + +This release bump following packages: + +* `react-bootstrap-table-next@0.1.6` +* `react-bootstrap-table-editor@0.1.4` + +## Changelog + +### Bug fixes +* Fixed includes and find are not supported in IE([#274](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/274)) +* Fixed empty table is missing the last cell when row seleciton is enable([#276](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/276)) + +### Features +* Allow to configure the default sort direction([#286](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/286)) +* Allow to custom the cell editor's style and class([#268](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/268)) + +### Enhancements +* Don't render anything if `noDataIndication` is not given([#275](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/275)) \ No newline at end of file