Final Class Yiisoft\Yii\DataView\GridView\Column\ActionButton
| Inheritance | Yiisoft\Yii\DataView\GridView\Column\ActionButton |
|---|
ActionButton represents a button in an action column of a grid.
Public Properties
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Yii\DataView\GridView\Column\ActionButton |
Property Details
Method Details
| public mixed __construct ( Closure|string|\Stringable $content = '', Closure|string|null $url = null, array|Closure|null $attributes = null, array|Closure|false|string|null $class = false, string|null $title = null, boolean $overrideAttributes = false ) | ||
| $content | Closure|string|\Stringable |
Button content. If closure is used, its signature is:
|
| $url | Closure|string|null |
Button URL. If closure is used, its signature is:
|
| $attributes | array|Closure|null |
HTML attributes. If closure is used, its signature is:
|
| $class | array|Closure|false|string|null |
CSS class(es). If closure is used, its signature is:
|
| $title | string|null |
Button title attribute. |
| $overrideAttributes | boolean |
Whether to override default attributes with custom ones instead of merging. |
public function __construct(
public readonly Closure|string|Stringable $content = '',
public readonly Closure|string|null $url = null,
public readonly Closure|array|null $attributes = null,
public readonly Closure|string|array|false|null $class = false,
public readonly ?string $title = null,
public readonly bool $overrideAttributes = false,
) {}
Signup or Login in order to comment.