PHP Class yii2tech\admin\grid\ActionColumn

Supported button options: - label: string - button label. - encode: boolean - whether to encode label. - icon: string - button icon short name. - options: array - link tag HTML options. - visible: boolean|callable - whether button should be rendered or not. - url: callable - callback, which should return button URL. This widget also provides default buttons as configuration, which will be merged with [[buttons]] recursively.
Since: 1.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\grid\ActionColumn
Show file Open project: yii2tech/admin Class Usage Examples

Public Properties

Property Type Description
$template

Public Methods

Method Description
createUrl ( $action, $model, $key, $index )

Protected Methods

Method Description
initDefaultButtons ( ) Merges buttons with default configurations.
renderButton ( string $name, $model, $key, $index ) : string Renders button.
renderDataCellContent ( $model, $key, $index )

Method Details

createUrl() public method

public createUrl ( $action, $model, $key, $index )

initDefaultButtons() protected method

Merges buttons with default configurations.
protected initDefaultButtons ( )

renderButton() protected method

Renders button.
protected renderButton ( string $name, $model, $key, $index ) : string
$name string button name.
$model
$key
$index
return string rendered HTML

renderDataCellContent() protected method

protected renderDataCellContent ( $model, $key, $index )

Property Details

$template public property

public $template