API Docs for: 2.3.0.8e91c22f
Show:

Components.ModelsTableRowSorting Class

Extends Ember.Component

Table header item used within models-table/table-header.

Component generates tr with column titles in the separated cells. Click by each cell will sort table data by selected field. Check properties disableSorting, sortedBy for ModelsTableColumn.

Usage example:

{{#models-table data=data columns=columns as |mt|}}
  {{#mt.table as |table|}}
    {{#table.header as |header|}}
      {{header.row-sorting}}
      {{! ... }}
    {{/table.header}}
    {{! ... }}
  {{/mt.table}}
  {{! .... }}
{{/models-table}}

Usage with a block context:

{{#models-table data=data columns=columns as |mt|}}
  {{#mt.table as |table|}}
    {{#table.header as |header|}}
      {{#header.row-sorting as |rs|}}
        {{#each rs.visibleProcessedColumns as |column|}}
           <td>{{column.title}}</td>
      {{/header.row-sorting}}
      {{! ... }}
    {{/table.header}}
    {{! ... }}
  {{/mt.table}}
  {{! .... }}
{{/models-table}}

ModelsTableRowSorting yields references to the following contextual components:

Check own docs for each component to get detailed info.

Properties

displayGroupedValueAs

String

Default: null

expandedItems

Object[]

Default: null

selectedItems

Object[]

Default: null

themeInstance

Object

Default: null

useDataGrouping

Boolean

Default: null

visibleProcessedColumns

Object[]

Default: null