Class X2CheckBoxColumn
CCheckBoxColumn represents a grid view column of checkboxes.
CCheckBoxColumn supports no checking (read-only), single check and multiple
checking. The mode is determined according to CCheckBoxColumn::$selectableRows
. When in
multiple checking mode, the header cell will display an additional checkbox,
clicking on which will check or uncheck all of the checkboxes in the data cells.
The header cell can be customized by CCheckBoxColumn::$headerTemplate
.
Additionally selecting a checkbox can select a grid view row (depending on
CGridView::selectableRows value) if CCheckBoxColumn::$selectableRows
is null
(default).
By default, the checkboxes rendered in data cells will have the values that
are the same as the key values of the data model. One may change this by setting
either CCheckBoxColumn::$name
or CCheckBoxColumn::$value
.
- CComponent
- CGridColumn
- CCheckBoxColumn
- X2CheckBoxColumn
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.1
Located at x2engine/protected/components/X2GridView/X2CheckBoxColumn.php
public
|
|
public
|
#
renderHeaderCellContent( )
Renders the header cell content. This method will render a checkbox in the
header when |
protected
|
#
renderDataCellContent( integer $row, mixed $data )
Renders the data cell content. This method renders a checkbox in the data cell. |
getDataCellContent(),
getHeaderCellContent()
|
__construct(),
getFilterCellContent(),
getFooterCellContent(),
getHasFooter(),
renderDataCell(),
renderFilterCell(),
renderFilterCellContent(),
renderFooterCell(),
renderFooterCellContent(),
renderHeaderCell()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
public
array
|
$headerHtmlOptions | array () |
#
$headerHtmlOptions |
public
array
|
$headerCheckBoxHtmlOptions | array () |
|
public
mixed
|
$width |
|
$checkBoxHtmlOptions,
$checked,
$disabled,
$footerHtmlOptions,
$headerTemplate,
$htmlOptions,
$name,
$selectableRows,
$value
|
$cssClassExpression,
$filterHtmlOptions,
$footer,
$grid,
$header,
$id,
$visible
|
$filterCellContent,
$footerCellContent,
$hasFooter,
$headerCellContent
|