ember-data-table-light

API Docs for: v0.0.3
Show:

TableSortingMixin

Summary

Mixin that adds support for sorting in a table.

Methods

apply

Syntax

apply

(
  • obj
)
private

Summary

Parameters:

Returns:

applied object

detect

Syntax

detect

(
  • obj
)
Boolean private

Summary

Parameters:

Returns:

removeSorting

Syntax

removeSorting

() public

Summary

Clear table sorting previously defined with {{#crossLink TableSorting#sortColumn:method}}sortColumn{{/crossLink}}.

reopen

Syntax

reopen

(
  • arguments
)
private

Summary

Parameters:

sortColumn

Syntax

sortColumn

(
  • property
  • direction
)
public

Summary

Configures table sorting for specified column and direction.

Parameters:

  • property String

    Property name for the column to be sorted by.

  • direction String

    Sort direction ('asc' or 'desc).

Properties

direction

Syntax

direction

String public

Summary

Sort direction ('asc' or 'desc).

Default: 'asc'

hasSorting

Syntax

hasSorting

Boolean public

Summary

Determines if the table is sorted or not.

sortProperty

Syntax

sortProperty

String public

Summary

Property that is used for sorting the table.

Default: null