Column
class Column implements JsonSerializable (View source)
Column Object
The Column object is used to define the different columns for a DataTable.
Methods
__construct(
string $type,
string $label = '',
Format $format = null,
string $role = '')
Creates a new Column with the defined label.
string
getType()
Returns the type of column.
string
getLabel()
Returns the column label.
boolean
isFormatted()
Returns the status of if the column is formatted.
string
getRole()
Returns the column role.
array
jsonSerialize()
Custom json serialization of the column.
Details
at line 63
__construct(
string $type,
string $label = '',
Format $format = null,
string $role = '')
Creates a new Column with the defined label.
at line 77
string
getType()
Returns the type of column.
at line 88
string
getLabel()
Returns the column label.
at line 99
Format
getFormat()
Returns the column formatter.
at line 110
boolean
isFormatted()
Returns the status of if the column is formatted.
at line 121
string
getRole()
Returns the column role.
at line 132
array
jsonSerialize()
Custom json serialization of the column.