Class lispa\amos\core\views\grid\EditableColumn
Inheritance | lispa\amos\core\views\grid\EditableColumn » lispa\amos\core\views\grid\DataColumn » kartik\grid\DataColumn |
---|
Public Properties
Property | Type | Description | Defined 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
Property | Type | Description | Defined 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 |
Public Methods
Method | Description | Defined By |
---|---|---|
init() | lispa\amos\core\views\grid\EditableColumn | |
renderDataCellContent() | Renders the data cell content. | lispa\amos\core\views\grid\EditableColumn |
Protected Methods
Method | Description | Defined By |
---|---|---|
renderFilterCellContent() | lispa\amos\core\views\grid\DataColumn |
Property Details
The css class to be appended for the editable inputs in this column
The computed editable options
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
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
Whether to refresh the grid on successful submission of editable
Method Details
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
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
|
return | string | The rendering result |
---|---|---|
throws | yii\base\InvalidConfigException |