![]() |
Framework
3.9
|
Represents a column in a DataListView output table. More...
Public Member Functions | |
DataColumn ($title, $template, $sortable=true, $style=null, $typeHint=null, $onExport=null, $sortFormat=null) | |
Creates a new DataColumn. More... | |
format ($row) | |
Outputs the text for the column using the given row. More... | |
Public Attributes | |
$template | |
The formatting template or formatter function for this data column. More... | |
$sortable | |
Boolean value indicating whether this column is sortable. More... | |
$title | |
The title text for this column. More... | |
$style | |
Any CSS styles to be applied to this column. More... | |
$typeHint | |
Hint to the Excel formatter about the data type to export. More... | |
$onExport | |
Optional user callback function for exporting the column. More... | |
$sortFormat | |
Optional explicit format to use as the basis for sorting. More... | |
$exportOnly = false | |
Boolean value indicating that the column should only be rendered when exporting to Excel. More... | |
Represents a column in a DataListView output table.
Definition at line 38 of file data_column.inc.
DataColumn::DataColumn | ( | $title, | |
$template, | |||
$sortable = true , |
|||
$style = null , |
|||
$typeHint = null , |
|||
$onExport = null , |
|||
$sortFormat = null |
|||
) |
Creates a new DataColumn.
Generally this function should not be invoked directly, but should be accessed through the DataListView::column() method.
string | $title | the title for the colum |
mixed | $template | the formatting template or formatter function for the column |
boolean | $sortable | boolean indicating whether the column is sortable |
string | $style | any CSS styles to be appled to the column |
string | $typeHint | hint for cell type to use when exporting to Excel |
mixed | $onExport | optional callback function to format value for Excel |
string | $sortFormat | Optional explicit format to use as the basis for sorting |
Definition at line 62 of file data_column.inc.
DataColumn::format | ( | $row | ) |
Outputs the text for the column using the given row.
This function should not be invoked directly, but is invoked as part of the DataListView's rendering operations.
$row | the object for the row being rendered |
Definition at line 79 of file data_column.inc.
DataColumn::$exportOnly = false |
Boolean value indicating that the column should only be rendered when exporting to Excel.
Definition at line 47 of file data_column.inc.
DataColumn::$onExport |
Optional user callback function for exporting the column.
Definition at line 45 of file data_column.inc.
DataColumn::$sortable |
Boolean value indicating whether this column is sortable.
Definition at line 41 of file data_column.inc.
DataColumn::$sortFormat |
Optional explicit format to use as the basis for sorting.
Definition at line 46 of file data_column.inc.
DataColumn::$style |
Any CSS styles to be applied to this column.
Definition at line 43 of file data_column.inc.
DataColumn::$template |
The formatting template or formatter function for this data column.
Definition at line 40 of file data_column.inc.
DataColumn::$title |
The title text for this column.
Definition at line 42 of file data_column.inc.
DataColumn::$typeHint |
Hint to the Excel formatter about the data type to export.
Definition at line 44 of file data_column.inc.