mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
patch docs for column.sortCaret
This commit is contained in:
parent
3ea816b2e6
commit
bb7243c5db
@ -13,6 +13,7 @@ Available properties in a column object:
|
||||
* [formatExtraData](#formatExtraData)
|
||||
* [sort](#sort)
|
||||
* [sortFunc](#sortFunc)
|
||||
* [sortCaret](#sortCaret)
|
||||
* [onSort](#onSort)
|
||||
* [classes](#classes)
|
||||
* [style](#style)
|
||||
@ -154,6 +155,20 @@ Enable the column sort via a `true` value given.
|
||||
}
|
||||
```
|
||||
|
||||
## <a name='sortCaret'>column.sortCaret - [Function]</a>
|
||||
Use`column.sortCaret` to custom the sort caret. This callback function accept two arguments: `order` and `column`
|
||||
|
||||
```js
|
||||
{
|
||||
// omit...
|
||||
sort: true,
|
||||
sortCaret: (order, column) => {
|
||||
return //...
|
||||
}
|
||||
}
|
||||
```
|
||||
> The possible value of `order` argument is **`asc`**, **`desc`** and **`undefined`**.
|
||||
|
||||
## <a name='classes'>column.classes - [String | Function]</a>
|
||||
It's available to have custom class on table column:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user