Class EditableColumn
CDataColumn represents a grid view column that is associated with a data attribute or expression.
Either CDataColumn::$name
or CDataColumn::$value
should be specified. The former
specifies a data attribute name, while the latter a PHP expression whose value
should be rendered instead.
The property CDataColumn::$sortable
determines whether the grid view can be sorted
according to this column. Note that the CDataColumn::$name
should always be set if the
column needs to be sortable. The CDataColumn::$name
value will be used by CSort to render a clickable link in the header cell to trigger the sorting.
- CComponent
-
CGridColumn
-
CDataColumn
-
EditableColumn
Copyright: Copyright © Vitaliy Potapov 2012
License: New BSD License
Author: Qiang Xue <qiang.xue@gmail.com>
Version: $Id$
Since: 1.1
Located at vitalets/yii-bootstrap-editable/EditableColumn.php
Methods summary
public
|
|
protected
|
#
renderDataCellContent( integer $row, mixed $data )
Renders the data cell content. This method evaluates |
protected
|
#
attachAjaxUpdateEvent( )
Unfortunatly Yii yet does not support custom js events in it's widgets. So we need to invoke it manually to ensure update of editables on grid ajax update. |
protected
|
Methods inherited from CDataColumn
renderFilterCellContent()
,
renderHeaderCellContent()
Methods inherited from CGridColumn
__construct()
,
getHasFooter()
,
renderDataCell()
,
renderFilterCell()
,
renderFooterCell()
,
renderFooterCellContent()
,
renderHeaderCell()
Methods inherited from CComponent
__call()
,
__get()
,
__isset()
,
__set()
,
__unset()
,
asa()
,
attachBehavior()
,
attachBehaviors()
,
attachEventHandler()
,
canGetProperty()
,
canSetProperty()
,
detachBehavior()
,
detachBehaviors()
,
detachEventHandler()
,
disableBehavior()
,
disableBehaviors()
,
enableBehavior()
,
enableBehaviors()
,
evaluateExpression()
,
getEventHandlers()
,
hasEvent()
,
hasEventHandler()
,
hasProperty()
,
raiseEvent()
Magic methods summary
Properties summary
public
array
|
$editable | |
protected
boolean
|
$isScriptRendered |
Properties inherited from CDataColumn
$filter
,
$name
,
$sortable
,
$type
,
$value
Properties inherited from CGridColumn
$cssClassExpression
,
$filterHtmlOptions
,
$footer
,
$footerHtmlOptions
,
$grid
,
$header
,
$headerHtmlOptions
,
$htmlOptions
,
$id
,
$visible
Magic properties inherited from CGridColumn
$hasFooter