Components.ModelsTableRowExpand Class
Extra row with additional information for original row. Component used within models-table/table-body.
Row expand is a table-row with a single cell. This cell has a colspan equal to the shown columns count. You should provide an ModelsTable.expandedRowComponent. It will be rendered inside ModelsTableRowExpand.
Usage example:
<ModelsTable @data={{data}} @columns={{columns}} as |MT|>
<MT.Table as |Table|>
<Table.Body as |Body|>
{{#each MT.visibleContent as |record index|}}
<Body.Row @record={{record}} @index={{index}} />
{{#if (exists-in MT.expandedItems record)}}
<Body.RowExpand @record={{record}} @index={{index}} />
{{/if}}
{{/each}}
</Table.Body>
{{! ... }}
</MT.Table>
{{! .... }}
</ModelsTable>
Item Index
Properties
Events
Properties
additionalColspan
Number
Extra colspan used in the internal td. Useful in cases with block scope usage when some extra columns are in the table (not only columns)
Default: 0
visibleProcessedColumns
Utils.ModelsTableColumn[]
Bound from ModelsTable.visibleProcessedColumns
Default: null
Events
clickOnRow
Closure action ModelsTable.clickOnRow
