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
파일 보기 프로젝트 열기: kartik-v/yii2-grid 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

보호된 프로퍼티들

프로퍼티 타입 설명
$_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