Tools
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
$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.
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.
at line 57
$this
append(mixed $tool)
Append a tools.
at line 71
$this
prepend(mixed $tool)
Prepend a tool.
at line 84
$this
disableList(bool $disable = true)
Disable list
tool.
at line 102
$this
disableDelete(bool $disable = true)
Disable delete
tool.
at line 120
$this
disableView(bool $disable = true)
Disable edit
tool.
at line 137
Builder
form()
Get parent form of tool.
at line 147
string
render()
Render tools.
at line 164
protected string
getListPath()
Get request path for resource list.
at line 174
protected string
getDeletePath()
Get request path for edit.
at line 184
protected string
getViewPath()
Get request path for delete.
at line 201
protected string
renderList()
Render list button.
at line 217
protected string
renderView()
Render list button.
at line 235
protected string
renderDelete()
Render delete
tool.
at line 262
protected mixed
renderCustomTools(Collection $tools)
Render custom tools.