Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.42 KB

SortableColumn.DOCUMENTATION.md

File metadata and controls

40 lines (28 loc) · 1.42 KB

Synopsis

SortableColumn react component

Props Reference

Name Type Description
title string Column name
test string Object field, required for multiple sortable columns support.
order string Order for objects sorting by field ('asc', 'desc').
defaultOrder string Default order ('asc') is used when order property is not specified.
sort string Object field which is used in column for sorting.
onSort func Callback fired when column sorting initiates.

Code Example

<SortableColumn
  title="Sortable column"
  test="id"
  order="asc"
  defaultOrder="asc"
  sort="id"
  onSort={(test, order) => { console.log(test, order) }}
/>

Contributors

Alexey Sergeev, Dmitriy Sanko

Component Name

SortableColumn

License

Licensed by © 2017 OpusCapita