Components.ModelsTableTableFooter Class
Table footer used within models-table/table.
By default it's an empty component. It should be used with a block context:
<ModelsTable @data={{data}} @columns={{columns}} as |MT|>
<MT.Table as |Table|>
<Table.Footer as |Footer|>
{{! ... }}
</Table.Footer>
{{! ... }}
</MT.Table>
{{! .... }}
</ModelsTable>
Block usage example 2:
<ModelsTable @data={{data}} @columns={{columns}} as |MT|>
<MT.Table as |Table|>
<Table.Footer as |Footer|>
<tr>
<td colspan={{if Footer.shouldAddExtraColumn (inc MT.visibleProcessedColumns.length) MT.visibleProcessedColumns.length}}>
{{! "inc" is a helper from ember-composable-helpers
}}
Some custom summary for table can be shown in the <code>tfoot</code>
</td>
</tr>
</Table.Footer>
{{! ... }}
</MT.Table>
{{! .... }}
</ModelsTable>
References to the following properties are yielded:
- shouldAddExtraColumn - determines if extra column should be added to the row in the
tfoot
. It happens when rows grouping is used and extra column with group values exists
Item Index
Properties
Properties
visibleProcessedColumns
Utils.ModelsTableColumn[]
Bound from ModelsTable.visibleProcessedColumns
Default: null
Events
clearFilters
Closure action ModelsTable.clearFilters
collapseAllRows
Closure action ModelsTable.collapseAllRows
collapseRow
Closure action ModelsTable.collapseRow
expandAllRows
Closure action ModelsTable.expandAllRows
expandRow
Closure action ModelsTable.expandRow
goToPage
Closure action ModelsTable.goToPage