Class CGridColumn
CGridColumn is the base class for all grid view column classes.
A CGridColumn object represents the specification for rendering the cells in a particular grid view column.
In a column, there is one header cell, multiple data cells, and an optional footer cell. Child classes may override renderHeaderCellContent, renderDataCellContent and renderFooterCellContent to customize how these cells are rendered.
- CComponent
- CGridColumn
Indirect known subclasses
EButtonColumnWithClearFilters, X2ButtonColumn, X2CheckBoxColumn, X2DataColumn, X2DataColumnGeneric, X2LeadsDataColumnPackage: zii\widgets\grid
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.1
Located at x2engine/framework/zii/widgets/grid/CGridColumn.php
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
getHeaderCellContent( )
Returns the header cell content. The default implementation simply returns
|
public
string
|
#
getFooterCellContent( )
Returns the footer cell content. The default implementation simply returns
|
public
string
|
#
getDataCellContent( integer $row )
Returns the data cell content. This method SHOULD be overridden to customize the rendering of the data cell. |
public
string
|
#
getFilterCellContent( )
Returns the filter cell content. The default implementation simply returns an empty column. This method may be overridden to customize the rendering of the filter cell (if any). |
public
string
|
$id |
|
#
the ID of this column. This value should be unique among all grid view columns. If this is not set, it will be assigned one automatically. |
public
|
$grid |
|
#
the grid view object that owns this column. |
public
string
|
$header |
|
#
the header cell text. Note that it will not be HTML-encoded. |
public
string
|
$footer |
|
#
the footer cell text. Note that it will not be HTML-encoded. |
public
boolean
|
$visible | true |
#
whether this column is visible. Defaults to true. |
public
string
|
$cssClassExpression |
|
#
a PHP expression that is evaluated for every data cell and whose result is used
as the CSS class name for the data cell. In this expression, you can use the
following variables:
CComponent::evaluateExpression() .
A PHP expression can be any PHP code that has a value. To learn more about what an expression is, please refer to the php manual. |
public
array
|
$htmlOptions | array() |
#
the HTML options for the data cell tags. |
public
array
|
$filterHtmlOptions | array() |
#
the HTML options for the filter cell tag. |
public
array
|
$headerHtmlOptions | array() |
#
the HTML options for the header cell tag. |
public
array
|
$footerHtmlOptions | array() |
#
the HTML options for the footer cell tag. |
public
boolean
|
$hasFooter |
#
Whether this column has a footer cell. This is determined based on whether
|
public
string
|
$filterCellContent |
#
The filter cell content. |
public
string
|
$headerCellContent |
#
The header cell content. |
public
string
|
$footerCellContent |
#
The footer cell content. |