Class yeesoft\grid\columns\StatusColumn

Inheritanceyeesoft\grid\columns\StatusColumn » yii\grid\DataColumn

Class StatusColumn

For rendering attributes with dropDown filters and colored value

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_labelClasses array yeesoft\grid\columns\StatusColumn

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() Init yeesoft\grid\columns\StatusColumn

Property Details

$_labelClasses protected property
protected array $_labelClasses = []
$contentOptions public property
public array $contentOptions = ['style' => 'text-align:center; vertical-align: middle;']
$headerOptions public property
public array $headerOptions = ['style' => 'text-align:center;']
$optionsArray public property
public array $optionsArray = []
$pjaxId public property
public string $pjaxId null
$toggleUrl public property
public string $toggleUrl null
$withPjax public property
public bool $withPjax true

Method Details

checkOptionsArray() protected method

Check if optionsArray is empty and if not - fill with default values

protected void checkOptionsArray ( )
throws \yii\base\InvalidConfigException
init() public method

Init

public void init ( )
initOptions() protected method

protected void initOptions ( )
throws \yii\base\InvalidConfigException
jsWithPjax() protected method

protected string jsWithPjax ( )
jsWithoutPjax() protected method

protected string jsWithoutPjax ( )
setCellStyleOptions() protected method

Set minimal width and align text in cell

protected void setCellStyleOptions ( )
setDefaultOptions() protected method

Set default options

protected void setDefaultOptions ( )