APIs

Show:

Mixin for DS.Controller to support sorting on ObjectListView.

Methods

_getNextSortDirection

(
  • currentDirection
)
String private

Get next sorting direction.

Parameters:

  • currentDirection String

    Current sorting direction.

Returns:

String:

Sorting direction.

actions.addColumnToSorting

(
  • column
  • sortPath
)

Add column into end list sorting.

Parameters:

  • column Object

    Column for sorting.

  • sortPath String

    Path to oldSorting.

actions.sortByColumn

(
  • column
  • sortPath
)

Sorting list by column.

Parameters:

  • column Object

    Column for sorting.

  • sortPath String

    Path to oldSorting.

Properties

computedSorting

Object

Dictionary with sorting data related to properties.

queryParams

Array

Defines which query parameters the controller accepts. More info.

Default: ['sort']

sort

String

String with sorting parameters.

sortDefaultValue

String

Default value for sorting.