Class lispa\amos\core\views\grid\EditableColumn

Inheritancelispa\amos\core\views\grid\EditableColumn » lispa\amos\core\views\grid\DataColumn » kartik\grid\DataColumn

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$editableOptions array|Closure The configuration options for the \kartik\editable\Editable widget. lispa\amos\core\views\grid\EditableColumn
$readonly boolean|Closure Whether to prevent rendering the editable behavior and display a readonly data. lispa\amos\core\views\grid\EditableColumn
$refreshGrid boolean Whether to refresh the grid on successful submission of editable lispa\amos\core\views\grid\EditableColumn

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_css string The css class to be appended for the editable inputs in this column lispa\amos\core\views\grid\EditableColumn
$_editableOptions array The computed editable options lispa\amos\core\views\grid\EditableColumn

Property Details

$_css protected property

The css class to be appended for the editable inputs in this column

protected string $_css null
$_editableOptions protected property

The computed editable options

protected array $_editableOptions = []
$editableOptions public 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 mixed is the data model
  • $key mixed is the key associated with the data model
  • $index integer is the zero-based index of the data model among the models array returned by \GridView::dataProvider.
  • $widget EditableColumn is the editable column widget instance
$readonly public 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 mixed is the data model
  • $key mixed is the key associated with the data model
  • $index integer is the zero-based index of the data model among the models array returned by \GridView::dataProvider.
  • $widget EditableColumn is the editable column widget instance
public boolean|Closure $readonly false
$refreshGrid public property

Whether to refresh the grid on successful submission of editable

public boolean $refreshGrid false

Method Details

init() public method

public void init ( )
throws yii\base\InvalidConfigException
renderDataCellContent() public method

Renders the data cell content.

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

The data model

$key mixed

The key associated with the data model

$index integer

The zero-based index of the data model among the models array returned by

[[GridView::dataProvider]].
return string

The rendering result

throws yii\base\InvalidConfigException