mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
fix #835
This commit is contained in:
parent
43aa280761
commit
2aab4301dd
@ -190,6 +190,19 @@ import paginationFactory, {
|
||||
|
||||
That's it!! The benifit for using standalone is you can much easier to render the standalone component in any posistion. In the future, we will implement more featue like applying `style`, `className` etc on standalone components.
|
||||
|
||||
##### Customizable props for `PaginationListStandalone`
|
||||
* N/A
|
||||
|
||||
##### Customizable props for `SizePerPageDropdownStandalone`
|
||||
* `open`: `true` to make dropdown show.
|
||||
* `hidden`: `true` to hide the size per page dropdown.
|
||||
* `btnContextual`: Set the button contextual
|
||||
* `variation`: Variation for dropdown, available value is `dropdown` and `dropup`.
|
||||
* `className`: Custom the class on size per page dropdown
|
||||
|
||||
##### Customizable props for `SizePerPageDropdownStandalone`
|
||||
* N/A
|
||||
|
||||
#### 4.2 Customization Everything
|
||||
|
||||
If you choose to custom the pagination component by yourself, the `paginationProps` will be important for you. Becasue you have to know for example how to change page or what's the current page etc. Hence, following is all the props in `paginationProps` object:
|
||||
|
||||
@ -67,6 +67,19 @@ const { SearchBar } = Search;
|
||||
|
||||
3. You should render `SearchBar` with `searchProps` as well. The position of `SearchBar` is depends on you.
|
||||
|
||||
### `SearchBar` Props
|
||||
#### className - [string]
|
||||
Custom the class on input element.
|
||||
|
||||
#### placeholder - [string]
|
||||
Custom the placeholder on input element.
|
||||
|
||||
#### style - [object]
|
||||
Custom the style on input element.
|
||||
|
||||
#### delay = [number]
|
||||
milionsecond for debounce user input.
|
||||
|
||||
### Search Options
|
||||
|
||||
#### defaultSearch - [string]
|
||||
@ -127,6 +140,8 @@ const { SearchBar, ClearSearchButton } = Search;
|
||||
</ToolkitProvider>
|
||||
```
|
||||
|
||||
-----
|
||||
|
||||
## Export CSV
|
||||
There are two steps to enable the export CSV functionality:
|
||||
|
||||
@ -176,6 +191,8 @@ Default is `true`. `false` will only export current data which display on table.
|
||||
#### onlyExportSelection - [bool]
|
||||
Default is `false`. `true` will only export the data which is selected.
|
||||
|
||||
-----
|
||||
|
||||
## Column Toggle
|
||||
|
||||
Let's see how to render the column toggle in your react component:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user