Action
class Action extends Child
Properties
public | $label | Action label. | |
public | $listable | Show action in crud table. | |
public | $editable | Show action in edit form. | |
public | $style | Action style. | |
public | $icon | Action icon | |
public | $confirm | Confirmation question string. | |
public | $done | JS code to be executed when action ends successfully. | |
public | $bulk | Enable as bulk action. | |
public | $form | Improper action - it generates form. | |
public | $filter | Callback to determinate if the action should be visible for a particular item. |
Public Methods
Protected Methods
Private Methods
Details
in Child at line 28
final
__call(string $name, array $arguments)
in Child at line 33
final void
_setKey(string $key)
in Child at line 37
final string
_getKey()
in Child at line 41
final void
_setNext(string|null $key)
in Child at line 45
final string|null
_getNext()
in Child at line 49
final void
_setPrev(string|null $key)
in Child at line 53
final string|null
_getPrev()
at line 61
final
getName()
Get normalized name of action
at line 68
final
getAction()
at line 89
hidden()
Shortcut for nonlistable && noneditable
at line 98
filter($func)
Filter.
at line 106
confirm($str = '')
Confirm.
at line 116
done($js)
JS to be done after action.
at line 124
bulk()
Bulk action
at line 132
nonbulk()
Not a bulk action
at line 141
form()
Form action.
Also adds noneditable - cannot show form when edit form already shown.
at line 150
nonform()
Not form action
at line 158
nonlistable()
Do not show in crud table
at line 166
listable()
Show in crud table
at line 174
noneditable()
Do not show in edit form
at line 182
editable()
Show in edit form
at line 190
danger()
Style - danger
at line 198
primary()
Style - primary
at line 206
secondary()
Style . secondary
at line 214
success()
Style - success
at line 222
warning()
Style - warning