trait HasActions (View source)

Properties

string[] $mountedTableActions
array<string,array<string,mixed>> $mountedTableActionsData
array<string,array<string,mixed>> $mountedTableActionsArguments
int $mountedTableActionRecord
protected Model|null $cachedMountedTableActionRecord
protected int|string|null $cachedMountedTableActionRecordKey
mixed $defaultTableAction
mixed $defaultTableActionArguments
mixed $defaultTableActionRecord
Form $mountedTableActionForm

Methods

void
configureTableAction(Action $action)

No description

mixed
callMountedTableAction(array $arguments = [])

No description

void
mountedTableActionRecord(int|string|null $record)

No description

mixed
mountTableAction(string $name, string|null $record = null, array $arguments = [])

No description

void
replaceMountedTableAction(string $name, string|null $record = null, array $arguments = [])

No description

bool
mountedTableActionShouldOpenModal(Action|null $mountedAction = null)

No description

bool
mountedTableActionHasForm(Action|null $mountedAction = null)

No description

Action|null
getMountedTableAction()

No description

Form|null
getMountedTableActionForm(Action|null $mountedAction = null)

No description

int|string|null
Model|null
getMountedTableActionRecord()

No description

string|null
popMountedTableAction()

No description

void
void
unmountTableAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

void
cacheMountedTableActionForm(Action|null $mountedAction = null)

No description

void
closeTableActionModal()

No description

void
openTableActionModal()

No description

array
getTableActions() deprecated

No description

string|null
getTableActionsColumnLabel() deprecated

No description

Details

protected void configureTableAction(Action $action)

No description

Parameters

Action $action

Return Value

void

mixed callMountedTableAction(array $arguments = [])

No description

Parameters

array $arguments

Return Value

mixed

void mountedTableActionRecord(int|string|null $record)

No description

Parameters

int|string|null $record

Return Value

void

mixed mountTableAction(string $name, string|null $record = null, array $arguments = [])

No description

Parameters

string $name
string|null $record
array $arguments

Return Value

mixed

void replaceMountedTableAction(string $name, string|null $record = null, array $arguments = [])

No description

Parameters

string $name
string|null $record
array $arguments

Return Value

void

bool mountedTableActionShouldOpenModal(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

bool mountedTableActionHasForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

Action|null getMountedTableAction()

No description

Return Value

Action|null

Form|null getMountedTableActionForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

Form|null

int|string|null getMountedTableActionRecordKey()

No description

Return Value

int|string|null

Model|null getMountedTableActionRecord()

No description

Return Value

Model|null

protected string|null popMountedTableAction()

No description

Return Value

string|null

protected void resetMountedTableActionProperties()

No description

Return Value

void

void unmountTableAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

Parameters

bool $shouldCancelParentActions
bool $shouldCloseModal

Return Value

void

protected void cacheMountedTableActionForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

void

protected void closeTableActionModal()

No description

Return Value

void

protected void openTableActionModal()

No description

Return Value

void

protected array getTableActions() deprecated

deprecated Override the `table()` method to configure the table.

No description

Return Value

array

protected string|null getTableActionsColumnLabel() deprecated

deprecated Override the `table()` method to configure the table.

No description

Return Value

string|null

Infolist mountedTableActionInfolist()

No description

Return Value

Infolist