API Docs for: 3.0.1.91d25ad1
Show:

Components.ModelsTableRow Class

Extends Ember.Component

Table body row is used within models-table/table-body.

Usage example:

<ModelsTable @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>
  {{! .... }}
</ModelsTable>

Usage with a block context:

<ModelsTable @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 MT.visibleProcessedColumns as |column|}}
            <Row.Cell @column={{column}} @index={{index}} />
          {{/each}}
        </Body.Row>
      {{/each}}
      {{! ... }}
    </Table.Body>
    {{! ... }}
  </MT.Table>
  {{! .... }}
</ModelsTable>

Important! You must bound record and index to the row.

ModelsTableTableRow yields references to the following contextual components:

Check own docs for each component to get detailed info.

References to the following properties are yielded:

References to the following actions are yielded:

  • editRow - action to set row to the Edit-mode
  • saveRow - action to save row and turn off Edit-mode
  • cancelEditRow - action to cancel changes done to the row and turn off Edit-mode

Properties

collapsedGroupValues

Array

Default: null

currentGroupingPropertyName

String

Default: null

data

Object

One of the data

Default: null

displayGroupedValueAs

String

Default: null

expandedGroupedItems

Object[] protected

Default: []

expandedGroupItems

Object[] protected

Default: []

groupedItems

Object[] private

Default: null

groupedLength

Number

Rows group size where current row is

Default: null

groupedValue

Default: null

index

Number

Row's index

Default: null

isEditRow

Boolean

Is the row in edit mode

Default: false

isExpanded

Boolean protected

Default: false

isFirstGroupedRow

Number protected

Default: false

isSelected

Boolean protected

Default: false

rowExpandedClass

String protected

Default: ''

rowSelectedClass

String protected

Default: ''

rowspanForFirstCell

Number protected

selectedGroupedItems

Object[] protected

Default: []

shouldShowGroupToggleCell

Boolean protected

Default: false

tagName

String

Default: 'tr'

themeInstance

Object

Default: null

useDataGrouping

Boolean

Default: null

visibleGroupedItems

Object[] private

Default: null

Events

cancelEditRow

protected

Indicate the edit on the row has been cancelled, the row is no longer in edit mode

collapseAllRows

doToggleGroupedRows

protected

doubleClickOnRow

editRow

protected

Place a row into edit mode

handleMouseEnter

protected

handleMouseLeave

protected

saveRow

protected

Indicate a row has been saved, the row is no longer in edit mode

toggleGroupedRows

toggleGroupedRowsExpands

toggleGroupedRowsSelection