trait HasBulkActions (View source)

Properties

array $selectedTableRecords
string|null $mountedTableBulkAction
array<string,mixed> $mountedTableBulkActionData
protected Collection $cachedSelectedTableRecords
Form $mountedTableBulkActionForm

Methods

void
configureTableBulkAction(BulkAction $action)

No description

mixed
callMountedTableBulkAction(array $arguments = [])

No description

mixed
mountTableBulkAction(string $name, array|null $selectedRecords = null)

No description

void
cacheMountedTableBulkActionForm(BulkAction|null $mountedBulkAction = null)

No description

void
replaceMountedTableBulkAction(string $name, array|null $selectedRecords = null)

No description

bool
mountedTableBulkActionShouldOpenModal(BulkAction|null $mountedBulkAction = null)

No description

void
unmountTableBulkAction(bool $shouldCloseModal = true)

No description

bool
mountedTableBulkActionHasForm(BulkAction|null $mountedBulkAction = null)

No description

void
deselectAllTableRecords()

No description

array
array
getGroupedSelectableTableRecordKeys(string $group)

No description

int
Collection
getSelectedTableRecords(bool $shouldFetchSelectedRecords = true)

No description

void
closeTableBulkActionModal()

No description

void
openTableBulkActionModal()

No description

bool
shouldSelectCurrentPageOnly() deprecated

No description

bool
shouldDeselectAllRecordsWhenTableFiltered() deprecated

No description

BulkAction|null
getMountedTableBulkAction()

No description

Form|null
getMountedTableBulkActionForm(BulkAction|null $mountedBulkAction = null)

No description

array
getTableBulkActions() deprecated

No description

Closure|null
isTableRecordSelectable() deprecated

No description

Details

protected void configureTableBulkAction(BulkAction $action)

No description

Parameters

BulkAction $action

Return Value

void

mixed callMountedTableBulkAction(array $arguments = [])

No description

Parameters

array $arguments

Return Value

mixed

mixed mountTableBulkAction(string $name, array|null $selectedRecords = null)

No description

Parameters

string $name
array|null $selectedRecords

Return Value

mixed

protected void cacheMountedTableBulkActionForm(BulkAction|null $mountedBulkAction = null)

No description

Parameters

BulkAction|null $mountedBulkAction

Return Value

void

void replaceMountedTableBulkAction(string $name, array|null $selectedRecords = null)

No description

Parameters

string $name
array|null $selectedRecords

Return Value

void

protected void resetMountedTableBulkActionProperties()

No description

Return Value

void

bool mountedTableBulkActionShouldOpenModal(BulkAction|null $mountedBulkAction = null)

No description

Parameters

BulkAction|null $mountedBulkAction

Return Value

bool

void unmountTableBulkAction(bool $shouldCloseModal = true)

No description

Parameters

bool $shouldCloseModal

Return Value

void

bool mountedTableBulkActionHasForm(BulkAction|null $mountedBulkAction = null)

No description

Parameters

BulkAction|null $mountedBulkAction

Return Value

bool

void deselectAllTableRecords()

No description

Return Value

void

array getAllSelectableTableRecordKeys()

No description

Return Value

array

array getGroupedSelectableTableRecordKeys(string $group)

No description

Parameters

string $group

Return Value

array

int getAllSelectableTableRecordsCount()

No description

Return Value

int

Collection getSelectedTableRecords(bool $shouldFetchSelectedRecords = true)

No description

Parameters

bool $shouldFetchSelectedRecords

Return Value

Collection

protected void closeTableBulkActionModal()

No description

Return Value

void

protected void openTableBulkActionModal()

No description

Return Value

void

bool shouldSelectCurrentPageOnly() deprecated

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

No description

Return Value

bool

bool shouldDeselectAllRecordsWhenTableFiltered() deprecated

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

No description

Return Value

bool

BulkAction|null getMountedTableBulkAction()

No description

Return Value

BulkAction|null

Form|null getMountedTableBulkActionForm(BulkAction|null $mountedBulkAction = null)

No description

Parameters

BulkAction|null $mountedBulkAction

Return Value

Form|null

protected array getTableBulkActions() deprecated

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

No description

Return Value

array

Closure|null isTableRecordSelectable() deprecated

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

No description

Return Value

Closure|null

Infolist mountedTableBulkActionInfolist()

No description

Return Value

Infolist