PHP Class kartik\grid\BooleanColumn

To add a BooleanColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: php 'columns' => [ ... [ 'class' => BooleanColumn::className(), you may configure additional properties here ], ]
Since: 1.0
Author: Kartik Visweswaran ([email protected])
Inheritance: extends DataColumn
Afficher le fichier Open project: kartik-v/yii2-grid Class Usage Examples

Méthodes publiques

Свойство Type Description
$falseIcon icon/indicator for the false value. If this is null, it will use the value from falseLabel. If GridView bootstrap property is set to true - it will default to [[GridView::ICON_INACTIVE]].
$falseLabel label for the false value. Defaults to Inactive.
$format
$hAlign
$showNullAsFalse whether to show null value as a false icon.
$trueIcon icon/indicator for the true value. If this is not set, it will use the value from trueLabel. If GridView bootstrap property is set to true - it will default to [[GridView::ICON_ACTIVE]].
$trueLabel label for the true value. Defaults to Active.
$width

Méthodes publiques

Méthode Description
getDataCellValue ( $model, $key, $index )
init ( )

Method Details

getDataCellValue() public méthode

public getDataCellValue ( $model, $key, $index )

init() public méthode

public init ( )

Property Details

$falseIcon public_oe property

icon/indicator for the false value. If this is null, it will use the value from falseLabel. If GridView bootstrap property is set to true - it will default to [[GridView::ICON_INACTIVE]].
public $falseIcon

$falseLabel public_oe property

label for the false value. Defaults to Inactive.
public $falseLabel

$format public_oe property

public $format

$hAlign public_oe property

public $hAlign

$showNullAsFalse public_oe property

whether to show null value as a false icon.
public $showNullAsFalse

$trueIcon public_oe property

icon/indicator for the true value. If this is not set, it will use the value from trueLabel. If GridView bootstrap property is set to true - it will default to [[GridView::ICON_ACTIVE]].
public $trueIcon

$trueLabel public_oe property

label for the true value. Defaults to Active.
public $trueLabel

$width public_oe property

public $width