API Docs for: 3.0.1.91d25ad1
Show:

Components.ModelsTableTableFooter Class

Extends Ember.Component

Table footer used within models-table/table.

By default it's an empty component. It should be used with a block context:

<ModelsTable @data={{data}} @columns={{columns}} as |MT|>
  <MT.Table as |Table|>
    <Table.Footer as |Footer|>
      {{! ... }}
    </Table.Footer>
    {{! ... }}
  </MT.Table>
  {{! .... }}
</ModelsTable>

Block usage example 2:

<ModelsTable @data={{data}} @columns={{columns}} as |MT|>
  <MT.Table as |Table|>
    <Table.Footer as |Footer|>
       <tr>
         <td colspan={{if Footer.shouldAddExtraColumn  (inc MT.visibleProcessedColumns.length) MT.visibleProcessedColumns.length}}>
           {{! "inc" is a helper from ember-composable-helpers }}
           Some custom summary for table can be shown in the <code>tfoot</code>
         </td>
       </tr>
     </Table.Footer>
    {{! ... }}
  </MT.Table>
  {{! .... }}
</ModelsTable>

References to the following properties are yielded:

  • shouldAddExtraColumn - determines if extra column should be added to the row in the tfoot. It happens when rows grouping is used and extra column with group values exists

Properties

displayGroupedValueAs

String

Default: null

selectedItems

Object[]

Default: null

shouldAddExtraColumn

Boolean protected

Default: false

tagName

String

Default: 'tfoot'

themeInstance

Object

Default: null

useDataGrouping

Boolean

Default: null