Action
class Action extends MountableAction (View source)
Traits
Constants
BADGE_VIEW |
|
BUTTON_VIEW |
|
GROUPED_VIEW |
|
ICON_BUTTON_VIEW |
|
LINK_VIEW |
|
Properties
protected string | $evaluationIdentifier | from EvaluatesClosures | |
static protected Closure>> | $macros | from Macroable | |
protected string | $view | from ViewComponent | |
protected string|Closure|null | $defaultView | from ViewComponent | |
protected array<string,mixed> | $viewData | from ViewComponent | |
protected string | $viewIdentifier | from StaticAction | |
protected ActionGroup|null | $group | from BelongsToGroup | |
protected bool|Closure | $isDisabled | from CanBeDisabled | |
protected mixed | $authorization | from CanBeHidden | |
protected bool|Closure | $isHidden | from CanBeHidden | |
protected bool|Closure | $isVisible | from CanBeHidden | |
protected string|Closure|null | $labeledFrom | from CanBeLabeledFrom | |
protected bool|Closure | $isOutlined | from CanBeOutlined | |
protected string|null | $parentActionCallLivewireClickHandler | from CanCallParentAction | |
protected bool|Closure | $shouldClose | from CanClose | |
protected string|Closure|null | $event | from CanDispatchEvent | |
protected array | $eventData | from CanDispatchEvent | |
protected string|bool | $dispatchDirection | from CanDispatchEvent | |
protected string|null | $dispatchToComponent | from CanDispatchEvent | |
protected bool|Closure | $shouldOpenUrlInNewTab | from CanOpenUrl | |
protected string|Closure|null | $url | from CanOpenUrl | |
protected bool | $canSubmitForm | from CanSubmitForm | |
protected string|null | $formToSubmit | from CanSubmitForm | |
protected string|null | $formId | from CanSubmitForm | |
protected Closure|string|null | $action | from HasAction | |
protected bool|Closure|null | $isLivewireClickHandlerEnabled | from HasAction | |
protected array<string,mixed> | $arguments | from HasArguments | |
protected string|Closure|null | $groupedIcon | from HasGroupedIcon | |
protected string | $keyBindings | from HasKeyBindings | |
protected Htmlable|Closure|null | $label | from HasLabel | |
protected bool|Closure | $isLabelHidden | from HasLabel | |
protected bool | $shouldTranslateLabel | from HasLabel | |
protected string|null | $name | from HasName | |
protected ActionSize|string|Closure|null | $defaultSize | from HasSize | |
protected ActionSize|string|Closure|null | $size | from HasSize | |
protected string|Closure|null | $tooltip | from HasTooltip | |
protected string|int|float|Closure|null | $badge | from HasBadge | |
protected string | $badgeColor | from HasBadge | |
protected string|Closure|null | $badgeIcon | from HasBadge | |
protected IconPosition|string|Closure|null | $badgeIconPosition | from HasBadge | |
protected string | $color | from HasColor | |
protected string | $defaultColor | from HasColor | |
protected array | $extraAttributes | from HasExtraAttributes | |
protected Htmlable|Closure|null | $icon | from HasIcon | |
protected IconPosition|string|Closure|null | $iconPosition | from HasIcon | |
protected IconSize|string|Closure|null | $iconSize | from HasIcon | |
protected string|null | $livewireTarget | from StaticAction | |
protected string|Closure|null | $alpineClickHandler | from StaticAction | |
protected Component | $livewire | from BelongsToLivewire | |
protected Closure|null | $mountUsing | from CanBeMounted | |
protected Notification|Closure|null | $failureNotification | from CanNotify | |
protected Notification|Closure|null | $successNotification | from CanNotify | |
protected string|Closure|null | $failureNotificationTitle | from CanNotify | |
protected string|Closure|null | $successNotificationTitle | from CanNotify | |
protected StaticAction> | $cachedExtraModalFooterActions | from CanOpenModal | |
protected StaticAction[] | $extraModalFooterActions | from CanOpenModal | |
protected bool|Closure|null | $isModalFooterSticky | from CanOpenModal | |
protected bool|Closure|null | $isModalHeaderSticky | from CanOpenModal | |
protected StaticAction> | $cachedModalActions | from CanOpenModal | |
protected StaticAction[] | $modalActions | from CanOpenModal | |
protected bool|Closure | $isModalSlideOver | from CanOpenModal | |
protected Alignment|string|Closure|null | $modalAlignment | from CanOpenModal | |
protected StaticAction> | $cachedModalFooterActions | from CanOpenModal | |
protected StaticAction[] | $modalFooterActions | from CanOpenModal | |
protected Alignment|string|Closure|null | $modalFooterActionsAlignment | from CanOpenModal | |
protected StaticAction|bool|Closure|null | $modalCancelAction | from CanOpenModal | |
protected string|Closure|null | $modalCancelActionLabel | from CanOpenModal | |
protected StaticAction|bool|Closure|null | $modalSubmitAction | from CanOpenModal | |
protected string|Closure|null | $modalSubmitActionLabel | from CanOpenModal | |
protected Htmlable|Closure|null | $modalContent | from CanOpenModal | |
protected Htmlable|Closure|null | $modalContentFooter | from CanOpenModal | |
protected Htmlable|Closure|null | $modalHeading | from CanOpenModal | |
protected Htmlable|Closure|null | $modalDescription | from CanOpenModal | |
protected MaxWidth|string|Closure|null | $modalWidth | from CanOpenModal | |
protected bool|Closure|null | $hasModal | from CanOpenModal | |
protected bool|Closure|null | $isModalHidden | from CanOpenModal | |
protected bool|Closure|null | $hasModalCloseButton | from CanOpenModal | |
protected bool|Closure|null | $isModalClosedByClickingAway | from CanOpenModal | |
protected bool|Closure|null | $isModalClosedByEscaping | from CanOpenModal | |
protected bool|Closure|null | $isModalAutofocused | from CanOpenModal | |
protected string|Closure|null | $modalIcon | from CanOpenModal | |
protected string | $modalIconColor | from CanOpenModal | |
protected string|Closure|null | $failureRedirectUrl | from CanRedirect | |
protected string|Closure|null | $successRedirectUrl | from CanRedirect | |
protected bool|Closure | $hasDatabaseTransactions | from CanUseDatabaseTransactions | |
protected array | $extraModalWindowAttributes | from HasExtraModalWindowAttributes | |
protected array<string,mixed> | $formData | from HasForm | |
protected Component[] | $form | from HasForm | |
protected bool|Closure | $isFormDisabled | from HasForm | |
protected Closure|null | $mutateFormDataUsing | from HasForm | |
protected Component[] | $infolist | from HasInfolist | |
protected Closure|null | $before | from HasLifecycleHooks | |
protected Closure|null | $after | from HasLifecycleHooks | |
protected Closure|null | $beforeFormFilled | from HasLifecycleHooks | |
protected Closure|null | $afterFormFilled | from HasLifecycleHooks | |
protected Closure|null | $beforeFormValidated | from HasLifecycleHooks | |
protected Closure|null | $afterFormValidated | from HasLifecycleHooks | |
protected bool|string|Closure|null | $cancelParentActions | from HasParentActions | |
protected bool | $isWizard | from HasWizard | |
protected bool|Closure | $isWizardSkippable | from HasWizard | |
protected int|Closure | $wizardStartStep | from HasWizard | |
protected Closure|null | $modifyWizardUsing | from HasWizard | |
protected Component|null | $component | from BelongsToInfolist |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])
No description
protected mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)
No description
protected string|null
getTypedReflectionParameterClassName(ReflectionParameter $parameter)
No description
static void
macro(string $name, callable $macro)
No description
static void
mixin(object $mixin, bool $replace = true)
No description
static void
flushMacros()
No description
static mixed
__callStatic(string $method, array $parameters)
No description
mixed
__call(string $method, array $parameters)
No description
static protected callable|null
getMacro(string $method)
No description
ViewComponent
view(string|null $view, array $viewData = [])
No description
ViewComponent
defaultView(string|Closure|null $view)
No description
protected array
extractPublicMethods()
No description
ViewComponent
viewData(array $data)
No description
string
getView()
No description
string|null
getDefaultView()
No description
string
toHtml()
No description
View
render()
No description
BelongsToGroup
group(ActionGroup|null $group)
No description
ActionGroup|null
getGroup()
No description
ActionGroup|null
getRootGroup()
No description
CanBeDisabled
disabled(bool|Closure $condition = true)
No description
bool
isDisabled()
No description
bool
isEnabled()
No description
CanBeHidden
authorize(mixed $abilities, Model|string|array|null $arguments = null)
No description
CanBeHidden
authorizeAny(string|array $abilities, Model|array|null $arguments = null)
No description
protected array
parseAuthorizationArguments(array $arguments)
No description
CanBeHidden
hidden(bool|Closure $condition = true)
No description
CanBeHidden
visible(bool|Closure $condition = true)
No description
bool
isAuthorized()
No description
bool
isHidden()
No description
bool
isHiddenInGroup()
No description
bool
isVisible()
No description
CanBeLabeledFrom
labeledFrom(string|Closure|null $breakpoint = null)
No description
string|null
getLabeledFromBreakpoint()
No description
CanBeOutlined
outlined(bool|Closure $condition = true)
No description
bool
isOutlined()
No description
CanCallParentAction
callParent(string|null $handler)
No description
string|null
getParentActionCallLivewireClickHandler()
No description
CanClose
close(bool|Closure $condition = true)
No description
bool
shouldClose()
No description
CanDispatchEvent
dispatch(string|Closure|null $event, array|Closure $data = [])
No description
CanDispatchEvent
dispatchSelf(string|Closure|null $event, array|Closure $data = [])
No description
CanDispatchEvent
dispatchTo(string $component, string|Closure|null $event, array|Closure $data = [])
No description
CanDispatchEvent
emit(string|Closure|null $event, array|Closure $data = [])
deprecated
deprecated
No description
CanDispatchEvent
emitSelf(string|Closure|null $event, array|Closure $data = [])
deprecated
deprecated
No description
CanDispatchEvent
emitTo(string $component, string|Closure|null $event, array|Closure $data = [])
deprecated
deprecated
No description
string|null
getEvent()
No description
CanDispatchEvent
eventData(array|Closure $data)
No description
array
getEventData()
No description
string|bool
getDispatchDirection()
No description
string|null
getDispatchToComponent()
No description
CanOpenUrl
openUrlInNewTab(bool|Closure $condition = true)
No description
CanOpenUrl
url(string|Closure|null $url, bool|Closure $shouldOpenInNewTab = false)
No description
string|null
getUrl()
No description
bool
shouldOpenUrlInNewTab()
No description
CanSubmitForm
submit(string|null $form)
No description
bool
canSubmitForm()
No description
string|null
getFormToSubmit()
No description
CanSubmitForm
formId(string|null $id)
No description
string|null
getFormId()
No description
HasAction
action(Closure|string|null $action)
No description
HasAction
livewireClickHandlerEnabled(bool|Closure|null $condition = true)
No description
Closure|null
getActionFunction()
No description
bool
isLivewireClickHandlerEnabled()
No description
HasArguments
arguments(array|null $arguments)
No description
HasArguments
mergeArguments(array $arguments)
No description
array
getArguments()
No description
HasArguments
resetArguments()
No description
bool
hasArguments()
No description
HasGroupedIcon
groupedIcon(string|Closure|null $icon)
No description
string|null
getGroupedIcon()
No description
HasKeyBindings
keyBindings(string|array|Closure|null $bindings)
No description
array|null
getKeyBindings()
No description
HasLabel
disableLabel(bool|Closure $condition = true)
deprecated
deprecated
No description
HasLabel
hiddenLabel(bool|Closure $condition = true)
No description
HasLabel
label(Htmlable|Closure|null $label)
No description
HasLabel
translateLabel(bool $shouldTranslateLabel = true)
No description
Htmlable|null
getLabel()
No description
bool
isLabelHidden()
No description
HasName
name(string|null $name)
No description
string|null
getName()
No description
HasSize
defaultSize(ActionSize|string|Closure|null $size)
No description
HasSize
size(ActionSize|string|Closure|null $size)
No description
ActionSize|string|null
getDefaultSize()
No description
ActionSize|string|null
getSize()
No description
HasTooltip
tooltip(string|Closure|null $tooltip)
No description
string|null
getTooltip()
No description
HasBadge
badge(string|int|float|Closure|null $badge = null)
No description
HasBadge
indicator(string|int|float|Closure|null $indicator)
deprecated
deprecated
No description
HasBadge
badgeColor(string|array|Closure|null $color)
No description
HasBadge
badgeIcon(string|Closure|null $icon)
No description
HasBadge
badgeIconPosition(IconPosition|string|Closure|null $position)
No description
HasBadge
indicatorColor(string|array|Closure|null $color)
deprecated
deprecated
No description
string|int|float|null
getBadge()
No description
string|array|null
getBadgeColor()
No description
string|null
getBadgeIcon()
No description
IconPosition|string
getBadgeIconPosition()
No description
HasColor
color(string|array|Closure|null $color)
No description
HasColor
defaultColor(string|array|Closure|null $color)
No description
string|array|null
getColor()
No description
HasExtraAttributes
extraAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraAttributes()
No description
ComponentAttributeBag
getExtraAttributeBag()
No description
HasIcon
icon(Htmlable|Closure|null $icon)
No description
HasIcon
iconPosition(IconPosition|string|Closure|null $position)
No description
HasIcon
iconSize(IconSize|string|Closure|null $size)
No description
Htmlable|null
getIcon()
No description
IconPosition|string
getIconPosition()
No description
IconSize|string|null
getIconSize()
No description
final
__construct(string|null $name)
No description
static StaticAction
make(string|null $name = null)
No description
bool
isBadge()
No description
StaticAction
button()
No description
bool
isButton()
No description
Groupable
grouped()
No description
StaticAction
iconButton()
No description
bool
isIconButton()
No description
StaticAction
link()
No description
bool
isLink()
No description
StaticAction
alpineClickHandler(string|Closure|null $handler)
No description
static string|null
getDefaultName()
No description
string|null
getLivewireClickHandler()
No description
string|null
getLivewireEventClickHandler()
No description
string|null
getAlpineClickHandler()
No description
StaticAction
livewireTarget(string|null $target)
No description
string|null
getLivewireTarget()
No description
StaticAction
withAttributes(array $attributes)
deprecated
deprecated
No description
BelongsToLivewire
livewire(Component $livewire)
No description
object
getLivewire()
No description
mixed
mount(array $parameters)
No description
CanBeMounted
mountUsing(Closure|null $callback)
No description
CanBeMounted
fillForm(array|Closure $data)
No description
Closure
getMountUsing()
No description
CanNotify
sendFailureNotification()
No description
CanNotify
failureNotification(Notification|Closure|null $notification)
No description
CanNotify
failureNotificationMessage(string|Closure|null $message)
deprecated
deprecated
No description
CanNotify
failureNotificationTitle(string|Closure|null $title)
No description
CanNotify
sendSuccessNotification()
No description
CanNotify
successNotification(Notification|Closure|null $notification)
No description
CanNotify
successNotificationMessage(string|Closure|null $message)
deprecated
deprecated
No description
CanNotify
successNotificationTitle(string|Closure|null $title)
No description
string|null
getSuccessNotificationTitle()
No description
string|null
getFailureNotificationTitle()
No description
CanOpenModal
closeModalByClickingAway(bool|Closure|null $condition = true)
No description
CanOpenModal
closeModalByEscaping(bool|Closure|null $condition = true)
No description
CanOpenModal
centerModal(bool|Closure|null $condition = true)
deprecated
deprecated
No description
CanOpenModal
modalAlignment(Alignment|string|Closure|null $alignment = null)
No description
CanOpenModal
modalCloseButton(bool|Closure|null $condition = true)
No description
CanOpenModal
modalAutofocus(bool|Closure|null $condition = true)
No description
CanOpenModal
modalIcon(string|Closure|null $icon = null)
No description
CanOpenModal
modalIconColor(string|array|Closure|null $color = null)
No description
CanOpenModal
slideOver(bool|Closure $condition = true)
No description
CanOpenModal
modalActions(array|Closure|null $actions = null)
deprecated
deprecated
No description
CanOpenModal
modalFooterActions(array|Closure|null $actions = null)
No description
CanOpenModal
modalFooterActionsAlignment(Alignment|string|Closure|null $alignment = null)
No description
CanOpenModal
extraModalActions(array|Closure $actions)
deprecated
deprecated
No description
CanOpenModal
extraModalFooterActions(array|Closure $actions)
No description
CanOpenModal
registerModalActions(array $actions)
No description
CanOpenModal
modalSubmitAction(StaticAction|bool|Closure|null $action = null)
No description
CanOpenModal
modalCancelAction(StaticAction|bool|Closure|null $action = null)
No description
CanOpenModal
modalSubmitActionLabel(string|Closure|null $label = null)
No description
CanOpenModal
modalCancelActionLabel(string|Closure|null $label = null)
No description
CanOpenModal
modalButton(string|Closure|null $label = null)
deprecated
deprecated
No description
CanOpenModal
modalContent(Htmlable|Closure|null $content = null)
No description
CanOpenModal
modalFooter(Htmlable|Closure|null $footer = null)
deprecated
deprecated
No description
CanOpenModal
modalContentFooter(Htmlable|Closure|null $footer = null)
No description
CanOpenModal
modalHeading(Htmlable|Closure|null $heading = null)
No description
CanOpenModal
modalDescription(Htmlable|Closure|null $description = null)
No description
CanOpenModal
modalSubheading(Htmlable|Closure|null $subheading = null)
deprecated
deprecated
No description
CanOpenModal
modalWidth(MaxWidth|string|Closure|null $width = null)
No description
string|null
getLivewireCallMountedActionName()
No description
CanOpenModal
modal(bool|Closure|null $condition = true)
No description
CanOpenModal
modalHidden(bool|Closure|null $condition = true)
No description
array
getModalFooterActions()
No description
Alignment|null
getModalFooterActionsAlignment()
No description
array
getModalActions()
No description
StaticAction|null
getModalAction(string $name)
No description
MountableAction|null
getMountableModalAction(string $name)
No description
StaticAction
prepareModalAction(StaticAction $action)
No description
array
getVisibleModalFooterActions()
No description
StaticAction|null
getModalSubmitAction()
No description
StaticAction|null
getModalCancelAction()
No description
array
getExtraModalFooterActions()
No description
Alignment|string
getModalAlignment()
No description
string
getModalSubmitActionLabel()
No description
string
getModalCancelActionLabel()
No description
Htmlable|null
getModalContent()
No description
Htmlable|null
getModalContentFooter()
No description
bool
hasModalContent()
No description
bool
hasModalContentFooter()
No description
Htmlable|null
getCustomModalHeading()
No description
Htmlable
getModalHeading()
No description
bool
hasCustomModalHeading()
No description
Htmlable|null
getModalDescription()
No description
bool
hasModalDescription()
No description
MaxWidth|string
getModalWidth()
No description
bool
isModalFooterSticky()
No description
bool
isModalHeaderSticky()
No description
bool
isModalSlideOver()
No description
bool
shouldOpenModal(Closure|null $checkForFormUsing = null)
No description
bool
hasModalCloseButton()
No description
bool
isModalClosedByClickingAway()
No description
bool
isModalClosedByEscaping()
No description
bool
isModalAutofocused()
No description
StaticAction
makeExtraModalAction(string $name, array|null $arguments = null)
deprecated
deprecated
No description
StaticAction
makeModalSubmitAction(string $name, array|null $arguments = null)
No description
StaticAction
makeModalAction(string $name)
No description
string|null
getModalIcon()
No description
string|array|null
getModalIconColor()
No description
CanOpenModal
stickyModalFooter(bool|Closure $condition = true)
No description
CanOpenModal
stickyModalHeader(bool|Closure $condition = true)
No description
CanRedirect
dispatchFailureRedirect()
No description
CanRedirect
dispatchSuccessRedirect()
No description
void
redirect(string|Closure $url)
No description
CanRedirect
failureRedirectUrl(string|Closure|null $url)
No description
CanRedirect
successRedirectUrl(string|Closure|null $url)
No description
CanRequireConfirmation
requiresConfirmation(bool|Closure $condition = true)
No description
CanUseDatabaseTransactions
databaseTransaction(bool|Closure $condition = true)
No description
bool
hasDatabaseTransactions()
No description
void
beginDatabaseTransaction()
No description
void
commitDatabaseTransaction()
No description
void
rollBackDatabaseTransaction()
No description
HasExtraModalWindowAttributes
extraModalWindowAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraModalWindowAttributes()
No description
ComponentAttributeBag
getExtraModalWindowAttributeBag()
No description
HasForm
disableForm(bool|Closure $condition = true)
deprecated
deprecated
No description
HasForm
disabledForm(bool|Closure $condition = true)
No description
HasForm
form(array|Closure|null $form)
No description
Form|null
getForm(Form $form)
No description
HasForm
formData(array $data, bool $shouldMutate = true)
No description
HasForm
resetFormData()
No description
array
getFormData()
No description
bool
isFormDisabled()
No description
HasInfolist
infolist(array|Closure|null $infolist)
No description
Infolist|null
getInfolist()
No description
string|null
getInfolistName()
No description
HasLifecycleHooks
before(Closure|null $callback)
No description
HasLifecycleHooks
after(Closure|null $callback)
No description
HasLifecycleHooks
beforeFormFilled(Closure|null $callback)
No description
HasLifecycleHooks
afterFormFilled(Closure|null $callback)
No description
HasLifecycleHooks
beforeFormValidated(Closure|null $callback)
No description
HasLifecycleHooks
afterFormValidated(Closure|null $callback)
No description
mixed
callBefore()
No description
mixed
callAfter()
No description
mixed
callBeforeFormFilled()
No description
mixed
callAfterFormFilled()
No description
mixed
callBeforeFormValidated()
No description
mixed
callAfterFormValidated()
No description
HasParentActions
cancelParentActions(bool|string|Closure|null $toAction = true)
No description
bool
shouldCancelAllParentActions()
No description
string|null
getParentActionToCancelTo()
No description
HasWizard
steps(array|Closure $steps)
No description
HasWizard
startOnStep(int|Closure $startStep)
No description
HasWizard
skippableSteps(bool|Closure $condition = true)
No description
bool
isWizard()
No description
bool
isWizardSkippable()
No description
int
getWizardStartStep()
No description
mixed
call(array $parameters = [])
No description
void
cancel(bool $shouldRollBackDatabaseTransaction = false)
No description
void
halt(bool $shouldRollBackDatabaseTransaction = false)
No description
void
hold()
deprecated
deprecated
No description
void
success()
No description
void
failure()
No description
BelongsToInfolist
component(Component|null $component)
No description
Component|null
getComponent()
No description
Model|null
getRecord()
No description
ActionContainer
toInfolistComponent()
No description