Constructor

Table
(
  • columns
  • rows
  • options
)

Parameters:

  • columns Array
  • rows Array
  • options Object
    • enableSync Boolean

      If true, creates a two way sync between the table's rows and the passed rows collection. Also see setRowsSynced(rows).

    • rowOptions Object

      Options hash passed through to createRow(content, options).

Show:
addColumn
(
  • column
)

Push the object onto the end of the column array if it is not already present.

Parameters:

addColumns
(
  • columns
)

Push the objects onto the end of the column array if it is not already present.

Parameters:

addRow
(
  • row
  • options
)

Push the object onto the end of the row array if it is not already present.

Parameters:

addRows
(
  • rows
  • options
)

Push the objects onto the end of the row array if it is not already present.

Parameters:

Table.createColumn
(
  • column
)
Column
static

Create a Column object with the given options

Parameters:

Returns:

Table.createColumns
(
  • columns
)
Array
static

Create a collection of Column objects with the given collection

Parameters:

Returns:

Table.createRow
(
  • content
  • options
)
Row
static

Create a Row object with the given content

Parameters:

Returns:

Row
Table.createRows
(
  • rows
  • options
)
Array
static

Create a collection of Row objects with the given collection

Parameters:

Returns:

insertColumnAt
(
  • index
  • column
)
Column

Insert a column at the specified index.

Parameters:

Returns:

Column:

inserted column

insertRowAt
(
  • index
  • row
  • options
)
Row

Insert a row at the specified index.

Parameters:

Returns:

Row:

inserted row

pushColumn
(
  • column
)
Column

Push the object onto the end of the column array.

Parameters:

Returns:

Column:

pushed column

pushColumns
(
  • columns
)
Array

Push the object onto the end of the column array.

Parameters:

Returns:

Array:

pushed columns

pushRow
(
  • row
  • options
)
Row

Push the object onto the end of the row array.

Parameters:

Returns:

Row:

pushed row

pushRows
(
  • rows
  • options
)
Array

Push the object onto the end of the row array.

Parameters:

Returns:

Array:

pushed rows

removeColumn
(
  • column
)

Remove all occurrences of an object in the columns

Parameters:

removeColumnAt
(
  • index
)

Remove a column at the specified index

Parameters:

removeColumns
(
  • columns
)

Removes each object in the passed enumerable from the columns.

Parameters:

removeRow
(
  • row
)

Remove all occurrences of an object in the rows

Parameters:

removeRowAt
(
  • index
)

Remove a row at the specified index

Parameters:

removeRows
(
  • rows
)

Removes each object in the passed enumerable from the rows.

Parameters:

setColumns
(
  • columns
)
Array

Replace all the column's content with content of the argument. If argument is an empty array columns will be cleared.

Parameters:

Returns:

Array:

columns

setRows
(
  • rows
  • options
)
Array

Replace all the row's content with content of the argument. If argument is an empty array rows will be cleared.

Parameters:

Returns:

Array:

rows

setRowsSynced
(
  • rows
  • options
)
Array

The same as setRows, however the given array is synced, meaning that mutating the array also updates the table and vice-versa.

Also see enableSync in the constructor options.

Parameters:

Returns:

Array:

rows

allColumns

Ember.Array

columns

Ember.Array


Default: []

expandedRows

Ember.Array

hiddenColumns

Ember.Array

hideableColumns

Ember.Array

isEmpty

Boolean

responsiveHiddenColumns

Ember.Array

rows

Ember.Array


Default: []

selectedRows

Ember.Array

sortableColumns

Ember.Array

sortedColumns

Ember.Array

visibleColumnGroups

Ember.Array

visibleColumns

Ember.Array

visibleRows

Ember.Array

visibleSubColumns

Ember.Array