class Tools implements Renderable

Properties

protected Builder $form
protected array $tools

Collection of tools.

protected Collection $appends

Tools should be appends to default tools.

protected Collection $prepends

Tools should be prepends to default tools.

Methods

__construct(Builder $builder)

Create a new Tools instance.

$this
append(mixed $tool)

Append a tools.

$this
prepend(mixed $tool)

Prepend a tool.

$this
disableList(bool $disable = true)

Disable list tool.

$this
disableDelete(bool $disable = true)

Disable delete tool.

$this
disableView(bool $disable = true)

Disable edit tool.

form()

Get parent form of tool.

string
render()

Render tools.

string
getListPath()

Get request path for resource list.

string
getDeletePath()

Get request path for edit.

string
getViewPath()

Get request path for delete.

string
renderList()

Render list button.

string
renderView()

Render list button.

string
renderDelete()

Render delete tool.

mixed
renderCustomTools(Collection $tools)

Render custom tools.

Details

at line 43
__construct(Builder $builder)

Create a new Tools instance.

Parameters

Builder $builder

at line 57
$this append(mixed $tool)

Append a tools.

Parameters

mixed $tool

Return Value

$this

at line 71
$this prepend(mixed $tool)

Prepend a tool.

Parameters

mixed $tool

Return Value

$this

at line 84
$this disableList(bool $disable = true)

Disable list tool.

Parameters

bool $disable

Return Value

$this

at line 102
$this disableDelete(bool $disable = true)

Disable delete tool.

Parameters

bool $disable

Return Value

$this

at line 120
$this disableView(bool $disable = true)

Disable edit tool.

Parameters

bool $disable

Return Value

$this

at line 137
Builder form()

Get parent form of tool.

Return Value

Builder

at line 147
string render()

Render tools.

Return Value

string

at line 164
protected string getListPath()

Get request path for resource list.

Return Value

string

at line 174
protected string getDeletePath()

Get request path for edit.

Return Value

string

at line 184
protected string getViewPath()

Get request path for delete.

Return Value

string

at line 201
protected string renderList()

Render list button.

Return Value

string

at line 217
protected string renderView()

Render list button.

Return Value

string

at line 235
protected string renderDelete()

Render delete tool.

Return Value

string

at line 262
protected mixed renderCustomTools(Collection $tools)

Render custom tools.

Parameters

Collection $tools

Return Value

mixed