trait CanSortRecords (View source)

Properties

protected string|Closure|null $defaultSort
protected string|Closure|null $defaultSortDirection
protected bool|Closure|null $persistsSortInSession
protected Htmlable|Closure|null $defaultSortOptionLabel

Methods

defaultSort(string|Closure|null $column, string|Closure|null $direction = 'asc')

No description

persistSortInSession(bool|Closure $condition = true)

No description

defaultSortOptionLabel(Htmlable|Closure|null $label)

No description

Column|null
getSortableVisibleColumn(string $name)

No description

Builder|null
getDefaultSort(Builder $query, string $direction)

No description

string|null
getDefaultSortColumn() deprecated

No description

Closure|null
getDefaultSortQuery() deprecated

No description

string|null
getDefaultSortDirection()

No description

string|null
getSortColumn()

No description

string|null
getSortDirection()

No description

bool
persistsSortInSession()

No description

Htmlable|null
getDefaultSortOptionLabel()

No description

Details

CanSortRecords defaultSort(string|Closure|null $column, string|Closure|null $direction = 'asc')

No description

Parameters

string|Closure|null $column
string|Closure|null $direction

Return Value

CanSortRecords

CanSortRecords persistSortInSession(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanSortRecords

CanSortRecords defaultSortOptionLabel(Htmlable|Closure|null $label)

No description

Parameters

Htmlable|Closure|null $label

Return Value

CanSortRecords

Column|null getSortableVisibleColumn(string $name)

No description

Parameters

string $name

Return Value

Column|null

Builder|null getDefaultSort(Builder $query, string $direction)

No description

Parameters

Builder $query
string $direction

Return Value

Builder|null

string|null getDefaultSortColumn() deprecated

deprecated Use `getDefaultSort()` instead.

No description

Return Value

string|null

Closure|null getDefaultSortQuery() deprecated

deprecated Use `getDefaultSort()` instead.

No description

Return Value

Closure|null

string|null getDefaultSortDirection()

No description

Return Value

string|null

string|null getSortColumn()

No description

Return Value

string|null

string|null getSortDirection()

No description

Return Value

string|null

bool persistsSortInSession()

No description

Return Value

bool

Htmlable|null getDefaultSortOptionLabel()

No description

Return Value

Htmlable|null