GitHub

DaffSortable

import { DaffSortable } from '@daffodil/core'

Describes the properties of a collection that make the collection able to be sorted by Daffodil.

interface DaffSortable {
  sortOptions: DaffSortOptions
  appliedSortOption: DaffSortOption['value']
  appliedSortDirection: DaffSortDirectionEnum
}

Properties

sortOptions
DaffSortOptions

The available options by which to sort the collection.

appliedSortOption
DaffSortOption['value']

The currently applied sorting option.

appliedSortDirection
DaffSortDirectionEnum

The currently applied sort direction.