Skip to content

Commit 74392dd

Browse files
committed
added custom onSort function
1 parent 1d79869 commit 74392dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ var ReactDatatable = require('@ashvin27/react-datatable')
217217
| onChange | Function(Object) | This method will call on table actions(page change, sorting, filtering, page length change)
218218
| onRowClicked | Function(Object) | This method will call when user click on a row, return row object.
219219
| extraButtons | Object[] | this props will add custom extra buttons to the table tools in the top right of the table header next to the built in export buttons
220+
| onSort | function(String, Object[], String) | this props will allow you to sort your data/records using any custom sort function. Or according to you if you don't want to use default sort function provided by the Library.
220221

221222
## Options
222223
| Name | Type | default | Description

0 commit comments

Comments
 (0)