PHP Класс 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 ], ]
С версии: 1.0
Автор: Kartik Visweswaran ([email protected])
Наследование: extends DataColumn
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
getDataCellValue ( $model, $key, $index )
init ( )

Описание методов

getDataCellValue() публичный Метод

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

init() публичный Метод

public init ( )

Описание свойств

$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]].
public $falseIcon

$falseLabel публичное свойство

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

$format публичное свойство

public $format

$hAlign публичное свойство

public $hAlign

$showNullAsFalse публичное свойство

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

$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]].
public $trueIcon

$trueLabel публичное свойство

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

$width публичное свойство

public $width