API Docs for: 2.5.0.563646c7
Show:

Components.ModelsTableNoData Class

Extends Ember.Component

Table row shown when no data provided to the ModelsTable. Component used within models-table/table-body.

This component is a table-row with a single cell. This cell has a colspan equal to the shown columns count.

Usage example:

{{#models-table data=data columns=columns as |mt|}}
  {{#mt.table as |table|}}
    {{#table.body as |body|}}
      {{#if body.visibleContent.length}}
        {{! ... }}
      {{else}}
        {{body.no-data}}
      {{/if}}
    {{/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|}}
      {{#if body.visibleContent.length}}
        {{! ... }}
      {{else}}
        {{#body.no-data as |nd|}}
           Any message here
        {{/body.no-data}}
      {{/if}}
    {{/table.header}}
    {{! ... }}
  {{/mt.table}}
  {{! .... }}
{{/models-table}}

Properties

processedColumns

Object[]

Default: null

realColumnsCount

Number private

themeInstance

Object

Default: null