Constructor

Column
(
  • options
)

Parameters:

Show:
serializeContentObjects
(
  • objects
)
Array

Serialize objects before they are inserted into the content array

Parameters:

Returns:

serializeSyncArrayObjects
(
  • objects
)
Array

Serialize objects before they are inserted into the sync array

Parameters:

Returns:

align

String

Text alignment. Possible values are ['left', 'right', 'center']


Default: 'left'

ascending

Boolean


Default: true

breakpoints

Array

An array of media breakpoints that determine when this column will be shown

If we have the following breakpoints defined in app/breakpoints.js:

  • mobile
  • tablet
  • desktop

And we want to show this column only for tablet and desktop media, the following array should be specified: ['tablet', 'desktop'].

If this property is null, undefined, or [], then this column will always be shown, regardless of the current media type.

cellClassNames

String | Array

Class names to be applied to all cells of this column

cellComponent

String

Component name for the column cells. This component is automatically passed row, column, and value variables, and you can specify a valuePath to set what property the value is set to.

cellType

String

Type of cell component

You can create your own cell types by running the blueprint: ember g cell-type my-cell-type

This will generate a component for you which represents the <td> cells in the column. If you want to apply custom actions to the td, or do some custom styling of the td with classNameBindings, all of that is available to you in this component.

You can then specify the custom type you created as a string here, to use it.


Default: 'base'

classNames

String | Array

Class names to be applied to header and footer cells of this column

columnId

String private

Column's unique ID.

component

String

Component name for the column

draggable

Boolean

Whether the column can be reorder via drag and drop.

CSS Classes:

  • is-draggable
  • is-dragging
  • is-drag-target
    • drag-left
    • drag-right


Default: false

droppable

Boolean

Whether the column is a valid drop target.


Default: true

format

Function

A format function used to calculate a cell's value. This method will be passed the raw value if valuePath is specified.

hidden

Boolean

Whether the column can is hidden.

CSS Classes:

  • is-hidden


Default: false

hideable

Boolean

Whether the column can be hidden.

CSS Classes:

  • is-hideable


Default: true

isGroupColumn

Boolean private

isHidden

Boolean

True if hidden or responsiveHidden is true.

isVisibleGroupColumn

Boolean private

label

String

Column header label


Default: ''

minResizeWidth

Number

The minimum width (in px) that this column can be resized to.


Default: 0

parent

Column

The parent column (or group) for this sub-column. This will only have a value if this column is a sub-column. Note: this doesn't update if you move this sub-column to another parent after instantiation.

resizable

Boolean

Whether the column can be resized.

CSS Classes:

  • is-resizable
  • is-resizing


Default: false

responsiveHidden

Boolean

If true, this column has been hidden due to the responsive behavior


Default: false

sortable

Boolean

Whether the column can be sorted.

CSS Classes:

  • is-sortable


Default: true

sorted

Boolean

Whether the column is sorted.

CSS Classes:

  • is-sorted


Default: false

subColumns

Array

An array of sub columns to be grouped together

syncArray

Array

The model that will be synchronized to the content of this proxy

type

String

Type of column component

You can create your own column types by running the blueprint: ember g column-type my-column-type

This will generate a component for you which represents the <th> element for the column. If you want to apply custom actions to the th, or do some custom styling of the th with classNameBindings, all of that is available to you in this component.

You can then specify the custom type you created as a string here, to use it.


Default: 'base'

valuePath

String

visibleSubColumns

Array private