Action
class Action extends StaticAction (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 |
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
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|BackedEnum|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