trait HasBulkActions (View source)

Properties

protected array $bulkActions
protected BulkAction> $flatBulkActions
protected Closure|null $checkIfRecordIsSelectableUsing
protected bool|Closure|null $selectsCurrentPageOnly
protected RecordCheckboxPosition|Closure|null $recordCheckboxPosition
protected bool|Closure|null $isSelectable

Methods

bulkActions(ActionGroup $actions)

No description

pushBulkActions(ActionGroup $actions)

No description

groupedBulkActions(array $actions)

No description

void
cacheBulkAction(BulkAction $action)

No description

void
mergeCachedFlatBulkActions(array $actions)

No description

void
removeCachedBulkActions(array $actions)

No description

checkIfRecordIsSelectableUsing(Closure|null $callback)

No description

selectCurrentPageOnly(bool|Closure $condition = true)

No description

array
getBulkActions()

No description

array
getFlatBulkActions()

No description

BulkAction|null
getBulkAction(string $name)

No description

bool
isRecordSelectable(Model $record)

No description

int
getAllSelectableRecordsCount()

No description

selectable(bool|Closure|null $condition = true)

No description

bool
isSelectionEnabled()

No description

bool
selectsCurrentPageOnly()

No description

bool
checksIfRecordIsSelectable()

No description

recordCheckboxPosition(RecordCheckboxPosition|Closure|null $position = null)

No description

RecordCheckboxPosition
getRecordCheckboxPosition()

No description

Details

HasBulkActions bulkActions(ActionGroup $actions)

No description

Parameters

ActionGroup $actions

Return Value

HasBulkActions

HasBulkActions pushBulkActions(ActionGroup $actions)

No description

Parameters

ActionGroup $actions

Return Value

HasBulkActions

HasBulkActions groupedBulkActions(array $actions)

No description

Parameters

array $actions

Return Value

HasBulkActions

protected void cacheBulkAction(BulkAction $action)

No description

Parameters

BulkAction $action

Return Value

void

protected void mergeCachedFlatBulkActions(array $actions)

No description

Parameters

array $actions

Return Value

void

protected void removeCachedBulkActions(array $actions)

No description

Parameters

array $actions

Return Value

void

HasBulkActions checkIfRecordIsSelectableUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasBulkActions

HasBulkActions selectCurrentPageOnly(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasBulkActions

array getBulkActions()

No description

Return Value

array

array getFlatBulkActions()

No description

Return Value

array

BulkAction|null getBulkAction(string $name)

No description

Parameters

string $name

Return Value

BulkAction|null

bool isRecordSelectable(Model $record)

No description

Parameters

Model $record

Return Value

bool

int getAllSelectableRecordsCount()

No description

Return Value

int

HasBulkActions selectable(bool|Closure|null $condition = true)

No description

Parameters

bool|Closure|null $condition

Return Value

HasBulkActions

bool isSelectionEnabled()

No description

Return Value

bool

bool selectsCurrentPageOnly()

No description

Return Value

bool

bool checksIfRecordIsSelectable()

No description

Return Value

bool

HasBulkActions recordCheckboxPosition(RecordCheckboxPosition|Closure|null $position = null)

No description

Parameters

RecordCheckboxPosition|Closure|null $position

Return Value

HasBulkActions

RecordCheckboxPosition getRecordCheckboxPosition()

No description

Return Value

RecordCheckboxPosition