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

static 
configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)

No description

configure()

No description

void
setUp()

No description

evaluate($value, array $parameters = [], array $exceptParameters = [])

No description

array
resolveEvaluationParameter(string $parameter, Closure $value)

No description

bool
isEvaluationParameterRemoved(string $parameter)

No description

view(string $view, array $viewData = [])

No description

array
extractPublicProperties()

No description

array
extractPublicMethods()

No description

viewData(array $data)

No description

string
getView()

No description

string
toHtml()

No description

View
render()

No description

disabled(bool|Closure $condition = true)

No description

bool
isDisabled()

No description

bool
isEnabled()

No description

authorize($abilities, Model|array|null $arguments = null)

No description

authorizeAny(string|array $abilities, Model|array|null $arguments = null)

No description

array
parseAuthorizationArguments(array $arguments)

No description

hidden(bool|Closure $condition = true)

No description

visible(bool|Closure $condition = true)

No description

bool
isHidden()

No description

bool
isAuthorized()

No description

color(string|Closure|null $color)

No description

from  HasColor
string|null
getColor()

No description

from  HasColor
icon(string|Closure|null $icon)

No description

from  HasIcon
iconPosition(string|Closure|null $position)

No description

from  HasIcon
string|null
getIcon()

No description

from  HasIcon
string|null
getIconPosition()

No description

from  HasIcon
disableLabel(bool|Closure $condition = true)

No description

from  HasLabel
label(Htmlable|Closure|null $label)

No description

from  HasLabel
translateLabel(bool $shouldTranslateLabel = true)

No description

from  HasLabel
Htmlable|null
getLabel()

No description

from  HasLabel
bool
isLabelHidden()

No description

from  HasLabel
name(string $name)

No description

from  HasName
string
getName()

No description

from  HasName
size(string|Closure|null $size)

No description

from  HasSize
string|null
getSize()

No description

from  HasSize
extraAttributes(array|Closure $attributes, bool $merge = false)

No description

array
getExtraAttributes()

No description

ComponentAttributeBag
getExtraAttributeBag()

No description

__construct(string $name)

No description

static BaseAction
make(string|null $name = null)

No description

static string|null
getDefaultName()

No description

withAttributes(array $attributes) deprecated

No description

outlined(bool|Closure $condition = true)

No description

bool
isOutlined()

No description

close(bool|Closure $condition = true)

No description

bool
shouldCloseNotification()

No description

emit(string|Closure|null $event, array|Closure $data = [])

No description

emitSelf(string|Closure|null $event, array|Closure $data = [])

No description

emitTo(string $component, string|Closure|null $event, array|Closure $data = [])

No description

emitUp(string|Closure|null $event, array|Closure $data = [])

No description

string|null
getEvent()

No description

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

openUrlInNewTab(bool|Closure $condition = true)

No description

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 bool
isViewSafe(string $view)

No description

button()

No description

grouped()

No description

link()

No description

Details

static configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)

No description

Parameters

Closure $callback
Closure|null $during
bool $isImportant

Configurable configure()

No description

Return Value

Configurable

protected void setUp()

No description

Return Value

void

evaluate($value, array $parameters = [], array $exceptParameters = [])

No description

Parameters

$value
array $parameters
array $exceptParameters

protected array getDefaultEvaluationParameters()

No description

Return Value

array

protected resolveEvaluationParameter(string $parameter, Closure $value)

No description

Parameters

string $parameter
Closure $value

protected bool isEvaluationParameterRemoved(string $parameter)

No description

Parameters

string $parameter

Return Value

bool

ViewComponent view(string $view, array $viewData = [])

No description

Parameters

string $view
array $viewData

Return Value

ViewComponent

protected array extractPublicProperties()

No description

Return Value

array

protected array extractPublicMethods()

No description

Return Value

array

ViewComponent viewData(array $data)

No description

Parameters

array $data

Return Value

ViewComponent

string getView()

No description

Return Value

string

string toHtml()

No description

Return Value

string

View render()

No description

Return Value

View

CanBeDisabled disabled(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeDisabled

bool isDisabled()

No description

Return Value

bool

bool isEnabled()

No description

Return Value

bool

CanBeHidden authorize($abilities, Model|array|null $arguments = null)

No description

Parameters

$abilities
Model|array|null $arguments

Return Value

CanBeHidden

CanBeHidden authorizeAny(string|array $abilities, Model|array|null $arguments = null)

No description

Parameters

string|array $abilities
Model|array|null $arguments

Return Value

CanBeHidden

protected array parseAuthorizationArguments(array $arguments)

No description

Parameters

array $arguments

Return Value

array

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

bool isHidden()

No description

Return Value

bool

bool isAuthorized()

No description

Return Value

bool

HasColor color(string|Closure|null $color)

No description

Parameters

string|Closure|null $color

Return Value

HasColor

string|null getColor()

No description

Return Value

string|null

HasIcon icon(string|Closure|null $icon)

No description

Parameters

string|Closure|null $icon

Return Value

HasIcon

HasIcon iconPosition(string|Closure|null $position)

No description

Parameters

string|Closure|null $position

Return Value

HasIcon

string|null getIcon()

No description

Return Value

string|null

string|null getIconPosition()

No description

Return Value

string|null

HasLabel disableLabel(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasLabel

HasLabel label(Htmlable|Closure|null $label)

No description

Parameters

Htmlable|Closure|null $label

Return Value

HasLabel

HasLabel translateLabel(bool $shouldTranslateLabel = true)

No description

Parameters

bool $shouldTranslateLabel

Return Value

HasLabel

Htmlable|null getLabel()

No description

Return Value

Htmlable|null

bool isLabelHidden()

No description

Return Value

bool

HasName name(string $name)

No description

Parameters

string $name

Return Value

HasName

string getName()

No description

Return Value

string

HasSize size(string|Closure|null $size)

No description

Parameters

string|Closure|null $size

Return Value

HasSize

string|null getSize()

No description

Return Value

string|null

HasExtraAttributes extraAttributes(array|Closure $attributes, bool $merge = false)

No description

Parameters

array|Closure $attributes
bool $merge

Return Value

HasExtraAttributes

array getExtraAttributes()

No description

Return Value

array

ComponentAttributeBag getExtraAttributeBag()

No description

Return Value

ComponentAttributeBag

final __construct(string $name)

No description

Parameters

string $name

static BaseAction make(string|null $name = null)

No description

Parameters

string|null $name

Return Value

BaseAction

static string|null getDefaultName()

No description

Return Value

string|null

BaseAction withAttributes(array $attributes) deprecated

deprecated Use `->extraAttributes()` instead.

No description

Parameters

array $attributes

Return Value

BaseAction

CanBeOutlined outlined(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeOutlined

bool isOutlined()

No description

Return Value

bool

CanCloseNotification close(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanCloseNotification

bool shouldCloseNotification()

No description

Return Value

bool

CanEmitEvent emit(string|Closure|null $event, array|Closure $data = [])

No description

Parameters

string|Closure|null $event
array|Closure $data

Return Value

CanEmitEvent

CanEmitEvent emitSelf(string|Closure|null $event, array|Closure $data = [])

No description

Parameters

string|Closure|null $event
array|Closure $data

Return Value

CanEmitEvent

CanEmitEvent emitTo(string $component, string|Closure|null $event, array|Closure $data = [])

No description

Parameters

string $component
string|Closure|null $event
array|Closure $data

Return Value

CanEmitEvent

CanEmitEvent emitUp(string|Closure|null $event, array|Closure $data = [])

No description

Parameters

string|Closure|null $event
array|Closure $data

Return Value

CanEmitEvent

string|null getEvent()

No description

Return Value

string|null

CanEmitEvent eventData(array|Closure $data)

No description

Parameters

array|Closure $data

Return Value

CanEmitEvent

array getEventData()

No description

Return Value

array

string|bool getEmitDirection()

No description

Return Value

string|bool

string|null getEmitToComponent()

No description

Return Value

string|null

string|null getLivewireMountAction()

No description

Return Value

string|null

CanOpenUrl openUrlInNewTab(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanOpenUrl

CanOpenUrl url(string|Closure|null $url, bool|Closure $shouldOpenInNewTab = false)

No description

Parameters

string|Closure|null $url
bool|Closure $shouldOpenInNewTab

Return Value

CanOpenUrl

string|null getUrl()

No description

Return Value

string|null

bool shouldOpenUrlInNewTab()

No description

Return Value

bool

array toArray()

No description

Return Value

array

static Action fromArray(array $data)

No description

Parameters

array $data

Return Value

Action

static protected bool isViewSafe(string $view)

No description

Parameters

string $view

Return Value

bool

Action button()

No description

Return Value

Action

Action grouped()

No description

Return Value

Action

No description

Return Value

Action