API Docs for: 3.0.1.91d25ad1
Show:

Components.ModelsTableRowExpand Class

Extends Ember.Component

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>

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

cellColspan

Number protected

Default: 0

expandedRowComponent

Unknown

Default: null

index

Number

Row's index

Default: null

indexedClass

String protected

record

Object

One of the data

Default: null

tagName

String

Default: 'tr'

themeInstance

Object

Default: null

Events