class ListColumn

List Columns definition A translation of the list column configuration

Adapted from october\backend\classes\ListColumn

Properties

string $columnName
string $label
string $type
bool $searchable
bool $invisible
bool $sortable
bool $editable
string $valueFrom
string $defaults
string $sqlSelect
string $relation
string $width
string $cssClass
array $attributes
string $format
string $path
string $formatter
string $iconCssClass
array $config

Methods

__construct(string $columnName, string $label)

Constructor.

$this
displayAs(string $type, $config)

Specifies a list column rendering mode. Supported modes are:

  • text - text column, aligned left
  • number - numeric column, aligned right

array
evalConfig(array $config)

Process options and apply them to this object.

string
getName()

Returns a HTML valid name for the column name.

string
getId(string $suffix = null)

Returns a value suitable for the column id property.

Details

at line 118
__construct(string $columnName, string $label)

Constructor.

Parameters

string $columnName
string $label

at line 134
$this displayAs(string $type, $config)

Specifies a list column rendering mode. Supported modes are:

  • text - text column, aligned left
  • number - numeric column, aligned right

Parameters

string $type

Specifies a render mode as described above

$config

Return Value

$this

at line 149
protected array evalConfig(array $config)

Process options and apply them to this object.

Parameters

array $config

Return Value

array

at line 203
string getName()

Returns a HTML valid name for the column name.

Return Value

string

at line 215
string getId(string $suffix = null)

Returns a value suitable for the column id property.

Parameters

string $suffix

Specify a suffix string

Return Value

string