class TotalRow extends AbstractTool

Properties

protected GridWidget $grid from  AbstractTool
protected bool $disabled from  AbstractTool
protected Builder $query
protected array $columns
protected Collection $visibleColumns

Methods

$this
disable(bool $disable = true)

Toggle this button.

allowed()

If the tool is allowed.

$this
setGrid(GridWidget $grid)

Set parent grid.

getGrid()

No description

string
__toString()

No description

__construct(Builder $query, array $columns)

TotalRow constructor.

mixed
total(string $column, mixed $display = null)

Get total value of current column.

setVisibleColumns(Collection $columns)

No description

Collection|TotalRow
getVisibleColumns()

No description

Factory|View
render()

Render total-row.

Details

in AbstractTool at line 26
$this disable(bool $disable = true)

Toggle this button.

Parameters

bool $disable

Return Value

$this

in AbstractTool at line 36
allowed()

If the tool is allowed.

in AbstractTool at line 48
$this setGrid(GridWidget $grid)

Set parent grid.

Parameters

GridWidget $grid

Return Value

$this

in AbstractTool at line 58
GridWidget getGrid()

No description

Return Value

GridWidget

in AbstractTool at line 66
string __toString()

No description

Return Value

string

at line 34
__construct(Builder $query, array $columns)

TotalRow constructor.

Parameters

Builder $query
array $columns

at line 49
protected mixed total(string $column, mixed $display = null)

Get total value of current column.

Parameters

string $column
mixed $display

Return Value

mixed

at line 67
setVisibleColumns(Collection $columns)

No description

Parameters

Collection $columns

at line 75
Collection|TotalRow getVisibleColumns()

No description

Return Value

Collection|TotalRow

at line 89
Factory|View render()

Render total-row.

Return Value

Factory|View