Final Class Yiisoft\Yii\DataView\GridView\Column\SerialColumn
| Inheritance | Yiisoft\Yii\DataView\GridView\Column\SerialColumn |
|---|---|
| Implements | Yiisoft\Yii\DataView\GridView\Column\ColumnInterface |
SerialColumn displays a column of sequential row numbers (1-based) in a grid view.
Public Properties
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Creates a new SerialColumn instance. |
Yiisoft\Yii\DataView\GridView\Column\SerialColumn |
| getRenderer() | Yiisoft\Yii\DataView\GridView\Column\SerialColumn | |
| isVisible() | Yiisoft\Yii\DataView\GridView\Column\SerialColumn |
Property Details
Method Details
Creates a new SerialColumn instance.
| public mixed __construct ( string|null $header = null, string|null $footer = null, array $columnAttributes = [], array $bodyAttributes = [], boolean $visible = true ) | ||
| $header | string|null |
The header cell content. If null, no header will be rendered. |
| $footer | string|null |
The footer cell content. If null, no footer will be rendered. |
| $columnAttributes | array |
HTML attributes for all column cells. |
| $bodyAttributes | array |
HTML attributes for the body cells. |
| $visible | boolean |
Whether the column is visible. |
public function __construct(
public readonly ?string $header = null,
public readonly ?string $footer = null,
public readonly array $columnAttributes = [],
public readonly array $bodyAttributes = [],
private readonly bool $visible = true,
) {}
| public string getRenderer ( ) |
public function getRenderer(): string
{
return SerialColumnRenderer::class;
}
Signup or Login in order to comment.