Components.ModelsTableRow Class
Table body row is used within models-table/table-body.
Usage example:
{{#models-table data=data columns=columns as |mt|}}
{{#mt.table as |table|}}
{{#table.body as |body|}}
{{#each body.visibleContent as |record index|}}
{{body.row record=record index=index}}
{{/each}}
{{! ... }}
{{/table.header}}
{{! ... }}
{{/mt.table}}
{{! .... }}
{{/models-table}}
Usage with a block context:
{{#models-table data=data columns=columns as |mt|}}
{{#mt.table as |table|}}
{{#table.body as |body|}}
{{#each body.visibleContent as |record index|}}
{{#body.row record=record index=index as |row|}}
{{#each row.visibleProcessedColumns as |column|}}
{{row.cell column=column}}
{{/each}}
{{/body.row}}
{{/each}}
{{! ... }}
{{/table.header}}
{{! ... }}
{{/mt.table}}
{{! .... }}
{{/models-table}}
Important! You must bound record
and index
to the row
.
ModelsTableTableRow yields references to the following contextual components:
- models-table/cell - component represents each row's cell
Check own docs for each component to get detailed info.
Item Index
Properties
Methods
actions.cancelEditRow
()
Undefined
Indicate the edit on the row has been cancelled, the row is no longer in edit mode
Returns:
actions.editRow
()
Undefined
Place a row into edit mode
Returns:
actions.saveRow
()
Undefined
Indicate a row has been saved, the row is no longer in edit mode
Returns:
Properties
groupedValue
Default: null
visibleProcessedColumns
ModelsTableColumn
Bound from ModelsTable.visibleProcessedColumns
Default: null
Events
clickOnRow
Closure action ModelsTable.actions.clickOnRow
collapseAllRows
Closure action ModelsTable.actions.collapseAllRows
collapseRow
Closure action ModelsTable.actions.collapseRow
doubleClickOnRow
Closure action ModelsTable.actions.doubleClickOnRow
expandAllRows
Closure action ModelsTable.actions.expandAllRows
expandRow
Closure action ModelsTable.actions.expandRow
hoverOnRow
Closure action ModelsTable.actions.hoverOnRow
outRow
Closure action ModelsTable.actions.outRow
sendAction
Closure action ModelsTable.actions.sendAction
toggleGroupedRowsExpands
Closure action ModelsTable.actions.toggleGroupedRowsExpands
toggleGroupedRowsSelection
Closure action ModelsTable.actions.toggleGroupedRowsSelection