API Docs for: 2.3.0.8e91c22f
Show:

Components.ModelsTableRow Class

Extends Ember.Component

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:

Check own docs for each component to get detailed info.

Methods

actions.cancelEditRow

() Undefined

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

Returns:

Undefined:

actions.editRow

() Undefined

Place a row into edit mode

Returns:

Undefined:

actions.saveRow

() Undefined

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

Returns:

Undefined:

Properties

collapsedGroupValues

Array

Default: null

currentGroupingPropertyName

String

Default: null

expandedGroupedItems

Object[] private

Default: null

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

record

Object

One of the data

Default: null

rowExpandedClass

String private

rowSelectedClass

String private

rowspanForFirstCell

Number private

selectedGroupedItems

Object[] private

Default: null

themeInstance

Object

Default: null

visibleGroupedItems

Object[] private

Default: null

visibleProcessedColumns

ModelsTableColumn

Default: null