diff --git a/docs/filter-props.md b/docs/filter-props.md index 1feb957..495bfc8 100644 --- a/docs/filter-props.md +++ b/docs/filter-props.md @@ -131,7 +131,7 @@ const columns = [{ ## selectFilter **Required**: -### selectFilter.options - [Object] +### selectFilter.options - [Object | Array | Function] * (Required) the options for the list of drop down. **Optional**: @@ -161,12 +161,28 @@ const columns = [{ import BootstrapTable from 'react-bootstrap-table-next'; import filterFactory, { selectFilter } from 'react-bootstrap-table2-filter'; +// options as Object const selectOptions = { 0: 'good', 1: 'Bad', 2: 'unknown' }; +// options as Array +const selectOptions = [ + { value: 0, label: 'good' }, + { value: 1, label: 'Bad' }, + { value: 2, label: 'unknown' } +]; + +// options as Function +function selectOptions = (column) => [ + { value: 0, label: 'good' }, + { value: 1, label: 'Bad' }, + { value: 2, label: 'unknown' } +]; + + const columns = [ { ... }, { ... }, { dataField: 'quality', diff --git a/website/blog/2019-12-02-version-bump.md b/website/blog/2019-12-02-version-bump.md new file mode 100644 index 0000000..40b1bd2 --- /dev/null +++ b/website/blog/2019-12-02-version-bump.md @@ -0,0 +1,24 @@ +--- +title: New Release (2019-12-02) +author: Allen Fang +authorURL: https://twitter.com/allenfang_tw +--- + +## Changed Packages + +We got following packages version bump in this release: + +* `react-bootstrap-table-next@3.3.2` + + +## Changelog + +### Bug fixes +* Fixed incorrect row colspan when apply column toggle or column.hidden([4a340c7](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/4a340c714bb6006a30c447eeba4fd44ceca1e379)) +* Fixed `filterPosition` property does not work with rowSelect([8ecdbf6](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/8ecdbf611bf7e715d95511a731032d5028759799)) + +### Features +N/A + +### Enhancements +N/A \ No newline at end of file