Components.ModelsTableRowSorting Class
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:
- models-table/row-sorting-cell - component used as sorting row cell. Clicking on it causes column sorting
Check own docs for each component to get detailed info.
Item Index
Properties
Properties
Events
collapseAllRows
Closure action ModelsTable.actions.collapseAllRows
expandAllRows
Closure action ModelsTable.actions.expandAllRows
sendAction
Closure action ModelsTable.actions.sendAction
sort
Closure action ModelsTable.actions.sort
toggleAllSelection
Closure action ModelsTable.actions.toggleAllSelection