trait HasActions (View source)

Properties

protected array $actions
protected Action> $flatActions
protected Htmlable|Closure|null $actionsColumnLabel
protected string|Closure|null $actionsAlignment
protected ActionsPosition|Closure|null $actionsPosition

Methods

actions(ActionGroup $actions, ActionsPosition|string|Closure|null $position = null)

No description

pushActions(ActionGroup $actions)

No description

actionsColumnLabel(Htmlable|Closure|null $label)

No description

actionsAlignment(string|Closure|null $alignment = null)

No description

actionsPosition(ActionsPosition|Closure|null $position = null)

No description

array
getActions()

No description

Action|null
getAction(string|array $name)

No description

array
getFlatActions()

No description

bool
hasAction(string $name)

No description

void
cacheAction(Action $action, bool $shouldOverwriteExistingAction = true)

No description

void
mergeCachedFlatActions(array $actions, bool $shouldOverwriteExistingActions = true)

No description

Action|null
getMountableModalActionFromAction(Action $action, array $modalActionNames, Model|null $mountedRecord = null)

No description

ActionsPosition
getActionsPosition()

No description

string|null
getActionsAlignment()

No description

Htmlable|null
getActionsColumnLabel()

No description

Details

HasActions actions(ActionGroup $actions, ActionsPosition|string|Closure|null $position = null)

No description

Parameters

ActionGroup $actions
ActionsPosition|string|Closure|null $position

Return Value

HasActions

HasActions pushActions(ActionGroup $actions)

No description

Parameters

ActionGroup $actions

Return Value

HasActions

HasActions actionsColumnLabel(Htmlable|Closure|null $label)

No description

Parameters

Htmlable|Closure|null $label

Return Value

HasActions

HasActions actionsAlignment(string|Closure|null $alignment = null)

No description

Parameters

string|Closure|null $alignment

Return Value

HasActions

HasActions actionsPosition(ActionsPosition|Closure|null $position = null)

No description

Parameters

ActionsPosition|Closure|null $position

Return Value

HasActions

array getActions()

No description

Return Value

array

Action|null getAction(string|array $name)

No description

Parameters

string|array $name

Return Value

Action|null

array getFlatActions()

No description

Return Value

array

bool hasAction(string $name)

No description

Parameters

string $name

Return Value

bool

protected void cacheAction(Action $action, bool $shouldOverwriteExistingAction = true)

No description

Parameters

Action $action
bool $shouldOverwriteExistingAction

Return Value

void

protected void mergeCachedFlatActions(array $actions, bool $shouldOverwriteExistingActions = true)

No description

Parameters

array $actions
bool $shouldOverwriteExistingActions

Return Value

void

protected Action|null getMountableModalActionFromAction(Action $action, array $modalActionNames, Model|null $mountedRecord = null)

No description

Parameters

Action $action
array $modalActionNames
Model|null $mountedRecord

Return Value

Action|null

ActionsPosition getActionsPosition()

No description

Return Value

ActionsPosition

string|null getActionsAlignment()

No description

Return Value

string|null

Htmlable|null getActionsColumnLabel()

No description

Return Value

Htmlable|null