PHP Класс skeeks\cms\grid\BooleanColumn

Наследование: extends yii\grid\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.
$falseValue null
$format in which format should the value of each data model be displayed Defaults to raw. [[\yii\base\Formatter::format()]] or [[\yii\i18n\Formatter::format()]] is used.
$hAlign the horizontal alignment of each column. Should be one of 'left', 'right', or 'center'. Defaults to center.
$pageSummary the page summary that is displayed above the footer. Defaults to false.
$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.
$trueValue
$width the width of each column (matches the CSS width property). Defaults to 90px.

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

Метод Описание
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

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

public null $falseValue
Результат null

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

in which format should the value of each data model be displayed Defaults to raw. [[\yii\base\Formatter::format()]] or [[\yii\i18n\Formatter::format()]] is used.
public $format

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

the horizontal alignment of each column. Should be one of 'left', 'right', or 'center'. Defaults to center.
public $hAlign

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

the page summary that is displayed above the footer. Defaults to false.
public $pageSummary

$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

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

public $trueValue

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

the width of each column (matches the CSS width property). Defaults to 90px.
См. также: http://www.w3schools.com/cssref/pr_dim_width.asp
public $width