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
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.
string
render()
Render 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
protected string
getListPath()
Get request path for resource list.
at line 147
protected string
getDeletePath()
Get request path for edit.
at line 157
protected string
getViewPath()
Get request path for delete.
at line 174
Builder
form()
Get parent form of tool.
at line 184
protected string
renderList()
Render list button.
at line 200
protected string
renderView()
Render list button.
at line 218
protected string
renderDelete()
Render delete
tool.
at line 245
protected mixed
renderCustomTools(Collection $tools)
Render custom tools.
at line 274
string
render()
Render tools.