API Docs for: v2.7.0
Show:

Components.ModelsTableCell Class

Extends Ember.Component

Table cell used within models-table/table-row.

Cell types:

  • Text. Shows some property value
  • Route link with record id
  • Route link with record property value
  • Custom component

See properties routeName, propertyName, component for ModelsTableColumn.

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 as |row|}}
          {{#each row.visibleProcessedColumns as |column|}}
            {{#row.cell column=column as |cell|}}
              {{! ... }}
            {{/row.cell}}
          {{/each}}
        {{/body.row}}
      {{/each}}
      {{! ... }}
    {{/table.header}}
    {{! ... }}
  {{/mt.table}}
  {{! .... }}
{{/models-table}}

Properties

column

ModelsTableColumn

Default: null

componentToRender

String private

Given the mode for a cell (Edit or not) will determine which component to render

Default: null

index

Number

Row's index where current cell is

Default: null

isColumnEditable

Boolean private

Is this column editable

Default: true

isEditRow

Boolean private

Default: null

isExpanded

Boolean

Is current row expanded or not

Default: null

record

Unknown

One of the data

Default: null

themeInstance

Object

Default: null