class CallableRenderer implements RenderCellInterface (View source)

Properties

protected callable $renderFunction

Methods

__construct(callable $renderFunction)

No description

mixed
renderCell(string $key, mixed $cellData, FormatterOptions $options, array $rowData)

Convert the contents of one table cell into a string, so that it may be placed in the table. Renderer should return the $cellData passed to it if it does not wish to process it.

Details

__construct(callable $renderFunction)

No description

Parameters

callable $renderFunction

mixed renderCell(string $key, mixed $cellData, FormatterOptions $options, array $rowData)

Convert the contents of one table cell into a string, so that it may be placed in the table. Renderer should return the $cellData passed to it if it does not wish to process it.

Parameters

string $key

Identifier of the cell being rendered

mixed $cellData

The data to render

FormatterOptions $options

The formatting options

array $rowData

The rest of the row data

Return Value

mixed