trait CanSortRecords (View source)

Properties

$tableSortColumn
$tableSortDirection

Methods

void
sortTable(string|null $column = null, string|null $direction = null)

No description

string|null
getTableSortColumn()

No description

string|null
getTableSortDirection()

No description

string|null
getDefaultTableSortColumn()

No description

string|null
getDefaultTableSortDirection()

No description

void
updatedTableSort()

No description

Builder
applySortingToTableQuery(Builder $query)

No description

Builder
applyDefaultSortingToTableQuery(Builder $query, string $sortColumn, string $sortDirection)

No description

string
getTableSortSessionKey()

No description

bool

Details

void sortTable(string|null $column = null, string|null $direction = null)

No description

Parameters

string|null $column
string|null $direction

Return Value

void

string|null getTableSortColumn()

No description

Return Value

string|null

string|null getTableSortDirection()

No description

Return Value

string|null

protected string|null getDefaultTableSortColumn()

No description

Return Value

string|null

protected string|null getDefaultTableSortDirection()

No description

Return Value

string|null

void updatedTableSort()

No description

Return Value

void

protected Builder applySortingToTableQuery(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

protected Builder applyDefaultSortingToTableQuery(Builder $query, string $sortColumn, string $sortDirection)

No description

Parameters

Builder $query
string $sortColumn
string $sortDirection

Return Value

Builder

string getTableSortSessionKey()

No description

Return Value

string

protected bool shouldPersistTableSortInSession()

No description

Return Value

bool