SortButtonProps Interface

Hierarchy

  • SortButtonProps

Properties

dateFormat: string

The format of the date for sorting, if the property is a date.

handleColumnSort: ((property, dateFormat) => void)

Type declaration

    • (property, dateFormat): void
    • The function that is called when the button is clicked.

      Parameters

      • property: string
      • dateFormat: string

      Returns void

isSortKey: boolean

Indicates if the property is currently the sort key.

property: string

The property to be sorted when the button is clicked.

sortOrder: "asc" | "desc" | "noSort"

The current order of the sort. Can be 'asc', 'desc' or 'noSort'.

Generated using TypeDoc