Class pheme\grid\ToggleColumn

Inheritancepheme\grid\ToggleColumn » yii\grid\DataColumn

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$action string pheme\grid\ToggleColumn
$enableAjax bool pheme\grid\ToggleColumn
$iconOff string Glyphicon for 'off' value pheme\grid\ToggleColumn
$iconOn string Glyphicon for 'on' value pheme\grid\ToggleColumn
$offText string Text to display on the 'off' link pheme\grid\ToggleColumn
$onText string Text to display on the 'on' link pheme\grid\ToggleColumn
$primaryKey string Pk field name pheme\grid\ToggleColumn

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() pheme\grid\ToggleColumn
registerJs() Registers the ajax JS pheme\grid\ToggleColumn

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
renderDataCellContent() pheme\grid\ToggleColumn

Property Details

$action public property
public string $action 'toggle'
$enableAjax public property
public bool $enableAjax true
$iconOff public property

Glyphicon for 'off' value

public string $iconOff 'remove'
$iconOn public property

Glyphicon for 'on' value

public string $iconOn 'ok'
$offText public property

Text to display on the 'off' link

public string $offText null
$onText public property

Text to display on the 'on' link

public string $onText null
$primaryKey public property

Pk field name

public string $primaryKey 'primaryKey'

Method Details

init() public method

public void init ( )
registerJs() public method

Registers the ajax JS

public void registerJs ( )
renderDataCellContent() protected method

protected void renderDataCellContent ( $model, $key, $index )
$model
$key
$index