Action
class Action extends BaseAction implements Arrayable (View source)
Traits
Properties
static protected array | $configurations | from Configurable | |
static protected array | $importantConfigurations | from Configurable | |
protected string | $evaluationIdentifier | from EvaluatesClosures | |
protected array | $evaluationParametersToRemove | from EvaluatesClosures | |
protected string | $view | ||
protected array | $viewData | from ViewComponent | |
protected string | $viewIdentifier | ||
static protected array | $propertyCache | from ViewComponent | |
static protected array | $methodCache | from ViewComponent | |
protected bool|Closure | $isDisabled | from CanBeDisabled | |
protected | $authorization | from CanBeHidden | |
protected bool|Closure | $isHidden | from CanBeHidden | |
protected bool|Closure | $isVisible | from CanBeHidden | |
protected string|Closure|null | $color | from HasColor | |
protected string|Closure|null | $icon | from HasIcon | |
protected string|Closure|null | $iconPosition | from HasIcon | |
protected Htmlable|Closure|null | $label | from HasLabel | |
protected bool|Closure | $isLabelHidden | from HasLabel | |
protected bool | $shouldTranslateLabel | from HasLabel | |
protected string | $name | from HasName | |
protected string|Closure|null | $size | from HasSize | |
protected array | $extraAttributes | from HasExtraAttributes | |
protected bool|Closure | $isOutlined | from CanBeOutlined | |
protected bool|Closure | $shouldCloseNotification | from CanCloseNotification | |
protected string|Closure|null | $event | from CanEmitEvent | |
protected array|Closure | $eventData | from CanEmitEvent | |
protected string|bool | $emitDirection | from CanEmitEvent | |
protected string|null | $emitToComponent | from CanEmitEvent | |
protected bool|Closure | $shouldOpenUrlInNewTab | from CanOpenUrl | |
protected string|Closure|null | $url | from CanOpenUrl |
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
Details
static
configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
evaluate($value, array $parameters = [], array $exceptParameters = [])
No description
protected array
getDefaultEvaluationParameters()
No description
protected
resolveEvaluationParameter(string $parameter, Closure $value)
No description
protected bool
isEvaluationParameterRemoved(string $parameter)
No description
ViewComponent
view(string $view, array $viewData = [])
No description
protected array
extractPublicProperties()
No description
protected array
extractPublicMethods()
No description
ViewComponent
viewData(array $data)
No description
string
getView()
No description
string
toHtml()
No description
View
render()
No description
CanBeDisabled
disabled(bool|Closure $condition = true)
No description
bool
isDisabled()
No description
bool
isEnabled()
No description
CanBeHidden
authorize($abilities, Model|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
isHidden()
No description
bool
isAuthorized()
No description
HasColor
color(string|Closure|null $color)
No description
string|null
getColor()
No description
HasIcon
icon(string|Closure|null $icon)
No description
HasIcon
iconPosition(string|Closure|null $position)
No description
string|null
getIcon()
No description
string|null
getIconPosition()
No description
HasLabel
disableLabel(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
string
getName()
No description
HasSize
size(string|Closure|null $size)
No description
string|null
getSize()
No description
HasExtraAttributes
extraAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraAttributes()
No description
ComponentAttributeBag
getExtraAttributeBag()
No description
final
__construct(string $name)
No description
static BaseAction
make(string|null $name = null)
No description
static string|null
getDefaultName()
No description
BaseAction
withAttributes(array $attributes)
deprecated
deprecated
No description
CanBeOutlined
outlined(bool|Closure $condition = true)
No description
bool
isOutlined()
No description
CanCloseNotification
close(bool|Closure $condition = true)
No description
bool
shouldCloseNotification()
No description
CanEmitEvent
emit(string|Closure|null $event, array|Closure $data = [])
No description
CanEmitEvent
emitSelf(string|Closure|null $event, array|Closure $data = [])
No description
CanEmitEvent
emitTo(string $component, string|Closure|null $event, array|Closure $data = [])
No description
CanEmitEvent
emitUp(string|Closure|null $event, array|Closure $data = [])
No description
string|null
getEvent()
No description
CanEmitEvent
eventData(array|Closure $data)
No description
array
getEventData()
No description
string|bool
getEmitDirection()
No description
string|null
getEmitToComponent()
No description
string|null
getLivewireMountAction()
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
array
toArray()
No description
static Action
fromArray(array $data)
No description
static protected bool
isViewSafe(string $view)
No description
Action
button()
No description
Action
grouped()
No description
Action
link()
No description