Class yeesoft\grid\GridQuickLinks

Inheritanceyeesoft\grid\GridQuickLinks » yii\base\Widget

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$defaultOptions \yeesoft\grid\type yeesoft\grid\GridQuickLinks

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
addKeyToValue() Addes key to value. yeesoft\grid\GridQuickLinks
setDefaultOptions() Set default options yeesoft\grid\GridQuickLinks

Property Details

$action public property
public string $action 'index'
$defaultOptions protected property
protected \yeesoft\grid\type $defaultOptions null
$labels public property
public array $labels null
$linkOptions public property
public array $linkOptions = []
public array $links null
$model public property
public string $model null
$options public property
public array $options null
$searchModel public property
public string $searchModel null
$showCount public property
public boolean $showCount TRUE
$wrapperClass public property
public string $wrapperClass 'quick-actions'

Method Details

addKeyToValue() protected static method

Addes key to value.

Usage examples,

// $array = ['dashboard' => 'Dashboard', 'settings' => 'Settings'];
// working with array
$array = ArrayHelper::addKeyToValue($array, 'label');
// $array content
// $array = ['dashboard' => ['label' => 'Dashboard'], 'settings' => ['label' => 'Settings']];
protected static array addKeyToValue ( $array, $key )
$array array

Array

$key array

Key to add

return array

New array

init() public method

public void init ( )
run() public method

public string run ( )
throws \yii\base\InvalidConfigException
setDefaultOptions() protected method

Set default options

protected void setDefaultOptions ( )