To add an EditableColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows:
renderDataCellContent()
public method
$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.
$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.