PHP Класс 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 ], ]
С версии: 1.0
Автор: Kartik Visweswaran ([email protected])
Наследование: extends DataColumn
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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)

Свойство Тип Описание
$_css the css class to be appended for the editable inputs in this column
$_editableOptions the computed editable options

Открытые методы

Метод Описание
init ( )
renderDataCellContent ( $model, $key, $index )

Описание методов

init() публичный Метод

public init ( )

renderDataCellContent() публичный Метод

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

Описание свойств

$_css защищенное свойство

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

$_editableOptions защищенное свойство

the computed editable options
protected $_editableOptions

$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.
public $editableOptions

$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.
public $readonly

$refreshGrid публичное свойство

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