TotalRow
class TotalRow extends AbstractTool
Properties
protected Grid | $grid | from AbstractTool | |
protected bool | $disabled | from AbstractTool | |
protected Builder | $query | ||
protected array | $columns | ||
protected Collection | $visibleColumns |
Methods
__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 29
AbstractTool
disable(bool $disable = true)
Toggle this button.
in
AbstractTool at line 39
bool
allowed()
If the tool is allowed.
in
AbstractTool at line 47
Grid
getGrid()
No description
in
AbstractTool at line 59
AbstractTool
setGrid(Grid $grid)
Set parent grid.
in
AbstractTool at line 68
string
__toString()
No description
at line 33
__construct(Builder $query, array $columns)
TotalRow constructor.
at line 48
protected mixed
total(string $column, mixed $display = null)
Get total value of current column.
at line 66
setVisibleColumns(Collection $columns)
No description
at line 74
Collection|TotalRow
getVisibleColumns()
No description
at line 88
Factory|View
render()
Render total-row.