PHP Class kartik\grid\EditableColumn

To add an EditableColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: php 'columns' => [ ... [ 'class' => EditableColumn::className(), you may configure additional properties here ], ]
Since: 1.0
Author: Kartik Visweswaran ([email protected])
Inheritance: extends DataColumn
Afficher le fichier Open project: kartik-v/yii2-grid Class Usage Examples

Méthodes publiques

Свойство Type Description
$editableOptions the configuration options for the [[\kartik\editable\Editable]] widget. If not set as an array, this can be passed as a callback function of the signature: function ($model, $key, $index), where: - $model: _\yii\base\Model_, is the data model. - $key: _string|object_, is the primary key value associated with the data model. - $index: _integer_, is the zero-based index of the data model among the model array returned by [[dataProvider]]. - $column: _EditableColumn_, is the column object instance.
$readonly whether to prevent rendering the editable behavior and display a readonly data. You can also set this up as an anonymous function of the form function($model, $key, $index, $widget) that will return a boolean value, where: - $model: _\yii\base\Model_, is the data model. - $key: _string|object_, is the primary key value associated with the data model. - $index: _integer_, is the zero-based index of the data model among the model array returned by [[dataProvider]]. - $column: _EditableColumn_, is the column object instance.
$refreshGrid whether to refresh the grid on successful submission of editable

Protected Properties

Свойство Type Description
$_css the css class to be appended for the editable inputs in this column
$_editableOptions the computed editable options

Méthodes publiques

Méthode Description
init ( )
renderDataCellContent ( $model, $key, $index )

Method Details

init() public méthode

public init ( )

renderDataCellContent() public méthode

public renderDataCellContent ( $model, $key, $index )

Property Details

$_css protected_oe property

the css class to be appended for the editable inputs in this column
protected $_css

$_editableOptions protected_oe property

the computed editable options
protected $_editableOptions

$editableOptions public_oe property

the configuration options for the [[\kartik\editable\Editable]] widget. If not set as an array, this can be passed as a callback function of the signature: function ($model, $key, $index), where: - $model: _\yii\base\Model_, is the data model. - $key: _string|object_, is the primary key value associated with the data model. - $index: _integer_, is the zero-based index of the data model among the model array returned by [[dataProvider]]. - $column: _EditableColumn_, is the column object instance.
public $editableOptions

$readonly public_oe property

whether to prevent rendering the editable behavior and display a readonly data. You can also set this up as an anonymous function of the form function($model, $key, $index, $widget) that will return a boolean value, where: - $model: _\yii\base\Model_, is the data model. - $key: _string|object_, is the primary key value associated with the data model. - $index: _integer_, is the zero-based index of the data model among the model array returned by [[dataProvider]]. - $column: _EditableColumn_, is the column object instance.
public $readonly

$refreshGrid public_oe property

whether to refresh the grid on successful submission of editable
public $refreshGrid