Table
class Table extends ViewComponent (View source)
Traits
Constants
LOADING_TARGETS |
|
Properties
protected string | $evaluationIdentifier | ||
static protected Closure>> | $macros | from Macroable | |
protected string | $view | ||
protected string|Closure|null | $defaultView | from ViewComponent | |
protected array<string,mixed> | $viewData | from ViewComponent | |
protected string | $viewIdentifier | ||
protected HasTable | $livewire | from BelongsToLivewire | |
protected bool|Closure | $isStriped | from CanBeStriped | |
protected bool|Closure | $isLoadingDeferred | from CanDeferLoading | |
protected Group|null | $defaultGroup | from CanGroupRecords | |
protected Group> | $cachedGroups | from CanGroupRecords | |
protected array|Closure | $groups | from CanGroupRecords | |
protected bool|Closure | $isGroupsOnly | from CanGroupRecords | |
protected bool|Closure | $areGroupingSettingsInDropdownOnDesktop | from CanGroupRecords | |
protected bool|Closure | $areGroupingSettingsHidden | from CanGroupRecords | |
protected bool|Closure | $isGroupingDirectionSettingHidden | from CanGroupRecords | |
protected Closure|null | $modifyGroupRecordsTriggerActionUsing | from CanGroupRecords | |
protected int|string|Closure|null | $defaultPaginationPageOption | from CanPaginateRecords | |
protected bool|Closure | $isPaginated | from CanPaginateRecords | |
protected bool|Closure | $isPaginatedWhileReordering | from CanPaginateRecords | |
protected array|Closure|null | $paginationPageOptions | from CanPaginateRecords | |
protected bool|Closure | $hasExtremePaginationLinks | from CanPaginateRecords | |
protected string|Closure|null | $pollingInterval | from CanPollRecords | |
protected int|Closure | $reorderAnimationDuration | from HasReorderAnimationDuration | |
protected bool|Closure | $isReorderable | from CanReorderRecords | |
protected bool|Closure | $isReorderAuthorized | from CanReorderRecords | |
protected string|Closure|null | $reorderColumn | from CanReorderRecords | |
protected Closure|null | $modifyReorderRecordsTriggerActionUsing | from CanReorderRecords | |
protected bool|null | $isSearchable | from CanSearchRecords | |
protected bool|Closure|null | $persistsSearchInSession | from CanSearchRecords | |
protected bool|Closure|null | $persistsColumnSearchesInSession | from CanSearchRecords | |
protected string|Closure|null | $searchPlaceholder | from CanSearchRecords | |
protected string|null | $searchDebounce | from CanSearchRecords | |
protected bool|Closure | $isSearchOnBlur | from CanSearchRecords | |
protected string|Closure|null | $defaultSort | from CanSortRecords | |
protected string|Closure|null | $defaultSortDirection | from CanSortRecords | |
protected bool|Closure|null | $persistsSortInSession | from CanSortRecords | |
protected Htmlable|Closure|null | $defaultSortOptionLabel | from CanSortRecords | |
protected bool | $hasSummary | from CanSummarizeRecords | |
protected int | $columnToggleFormColumns | from CanToggleColumns | |
protected string|Closure|null | $columnToggleFormMaxHeight | from CanToggleColumns | |
protected MaxWidth|string|Closure|null | $columnToggleFormWidth | from CanToggleColumns | |
protected Closure|null | $modifyToggleColumnsTriggerActionUsing | from CanToggleColumns | |
protected array | $actions | from HasActions | |
protected Action> | $flatActions | from HasActions | |
protected Htmlable|Closure|null | $actionsColumnLabel | from HasActions | |
protected string|Closure|null | $actionsAlignment | from HasActions | |
protected ActionsPosition|Closure|null | $actionsPosition | from HasActions | |
protected array | $bulkActions | from HasBulkActions | |
protected BulkAction> | $flatBulkActions | from HasBulkActions | |
protected Closure|null | $checkIfRecordIsSelectableUsing | from HasBulkActions | |
protected bool|Closure|null | $selectsCurrentPageOnly | from HasBulkActions | |
protected RecordCheckboxPosition|Closure|null | $recordCheckboxPosition | from HasBulkActions | |
protected bool|Closure|null | $isSelectable | from HasBulkActions | |
protected Column> | $columns | from HasColumns | |
protected array | $columnsLayout | from HasColumns | |
protected Component|null | $collapsibleColumnsLayout | from HasColumns | |
protected bool | $hasColumnGroups | from HasColumns | |
protected bool | $hasColumnsLayout | from HasColumns | |
protected Htmlable|Closure|null | $content | from HasContent | |
protected Htmlable|Closure|null | $contentFooter | from HasContent | |
protected array|Closure|null | $contentGrid | from HasContent | |
protected Htmlable|Closure|null | $emptyState | from HasEmptyState | |
protected Htmlable|Closure|null | $emptyStateDescription | from HasEmptyState | |
protected Htmlable|Closure|null | $emptyStateHeading | from HasEmptyState | |
protected string|Closure|null | $emptyStateIcon | from HasEmptyState | |
protected array | $emptyStateActions | from HasEmptyState | |
protected bool|Closure | $areFilterIndicatorsHidden | from HasFilterIndicators | |
protected BaseFilter> | $filters | from HasFilters | |
protected Closure|null | $filtersFormSchema | from HasFilters | |
protected int | $filtersFormColumns | from HasFilters | |
protected string|Closure|null | $filtersFormMaxHeight | from HasFilters | |
protected MaxWidth|string|Closure|null | $filtersFormWidth | from HasFilters | |
protected FiltersLayout|Closure|null | $filtersLayout | from HasFilters | |
protected Closure|null | $modifyFiltersTriggerActionUsing | from HasFilters | |
protected bool|Closure|null | $persistsFiltersInSession | from HasFilters | |
protected bool|Closure | $shouldDeselectAllRecordsWhenFiltered | from HasFilters | |
protected bool|Closure | $hasDeferredFilters | from HasFilters | |
protected Closure|null | $modifyFiltersApplyActionUsing | from HasFilters | |
protected Htmlable|Closure|null | $heading | from HasHeader | |
protected Htmlable|Closure|null | $header | from HasHeader | |
protected Htmlable|Closure|null | $description | from HasHeader | |
protected array | $headerActions | from HasHeaderActions | |
protected HeaderActionsPosition|Closure|null | $headerActionsPosition | from HasHeaderActions | |
protected Builder|Closure|null | $query | from HasQuery | |
protected string|Closure|null | $inverseRelationship | from HasQuery | |
protected Closure|null | $getRelationshipUsing | from HasQuery | |
protected Closure[] | $queryScopes | from HasQuery | |
protected string|Closure|null | $queryStringIdentifier | from HasQueryStringIdentifier | |
protected string|Closure|null | $recordAction | from HasRecordAction | |
protected array|string|Closure|null | $recordClasses | from HasRecordClasses | |
protected bool|Closure | $allowsDuplicates | from HasRecords | |
protected string|Closure|null | $modelLabel | from HasRecords | |
protected string|Closure|null | $pluralModelLabel | from HasRecords | |
protected string|Closure|null | $recordTitle | from HasRecords | |
protected string|Closure|null | $recordTitleAttribute | from HasRecords | |
protected bool|Closure | $shouldOpenRecordUrlInNewTab | from HasRecordUrl | |
protected string|Closure|null | $recordUrl | from HasRecordUrl | |
static string | $defaultCurrency | ||
static string | $defaultDateDisplayFormat | ||
static string | $defaultDateTimeDisplayFormat | ||
static string|null | $defaultNumberLocale | ||
static string | $defaultTimeDisplayFormat |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])
No description
protected mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)
No description
protected array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)
No description
protected string|null
getTypedReflectionParameterClassName(ReflectionParameter $parameter)
No description
static void
macro(string $name, callable $macro)
No description
static void
mixin(object $mixin, bool $replace = true)
No description
static void
flushMacros()
No description
static mixed
__callStatic(string $method, array $parameters)
No description
mixed
__call(string $method, array $parameters)
No description
static protected callable|null
getMacro(string $method)
No description
ViewComponent
view(string|null $view, array $viewData = [])
No description
ViewComponent
defaultView(string|Closure|null $view)
No description
protected array
extractPublicMethods()
No description
ViewComponent
viewData(array $data)
No description
string
getView()
No description
string|null
getDefaultView()
No description
string
toHtml()
No description
View
render()
No description
BelongsToLivewire
livewire(HasTable $livewire)
No description
HasTable
getLivewire()
No description
TranslatableContentDriver|null
makeTranslatableContentDriver()
No description
CanBeStriped
striped(bool|Closure $condition = true)
No description
bool
isStriped()
No description
CanDeferLoading
deferLoading(bool|Closure $condition = true)
No description
bool
isLoadingDeferred()
No description
bool
isLoaded()
No description
CanGroupRecords
groupRecordsTriggerAction(Closure|null $callback)
No description
CanGroupRecords
groupingSettingsInDropdownOnDesktop(bool|Closure $condition = true)
No description
CanGroupRecords
groupsInDropdownOnDesktop(bool|Closure $condition = true)
deprecated
deprecated
No description
CanGroupRecords
groupingSettingsHidden(bool|Closure $condition = true)
No description
CanGroupRecords
groupingDirectionSettingHidden(bool|Closure $condition = true)
No description
CanGroupRecords
defaultGroup(Group|null $group)
No description
CanGroupRecords
groups(array|Closure $groups)
No description
CanGroupRecords
groupsOnly(bool|Closure $condition = true)
No description
Action
getGroupRecordsTriggerAction()
No description
bool
isDefaultGroupSelectable()
No description
bool
areGroupingSettingsInDropdownOnDesktop()
No description
bool
areGroupingSettingsHidden()
No description
bool
isGroupingDirectionSettingHidden()
No description
Group|null
getDefaultGroup()
No description
array
getGroups()
No description
Group|null
getGroup(string $id)
No description
Group|null
getGrouping()
No description
bool
isGroupsOnly()
No description
CanPaginateRecords
defaultPaginationPageOption(int|string|Closure|null $option)
No description
CanPaginateRecords
paginated(bool|array|Closure $condition = true)
No description
CanPaginateRecords
paginatedWhileReordering(bool|Closure $condition = true)
No description
CanPaginateRecords
paginationPageOptions(array|Closure|null $options)
No description
CanPaginateRecords
extremePaginationLinks(bool|Closure $condition = true)
No description
int|string|null
getDefaultPaginationPageOption()
No description
array
getPaginationPageOptions()
No description
bool
isPaginated()
No description
bool
isPaginatedWhileReordering()
No description
bool
hasExtremePaginationLinks()
No description
CanPollRecords
poll(string|Closure|null $interval = '10s')
No description
string|null
getPollingInterval()
No description
HasReorderAnimationDuration
reorderAnimationDuration(int|Closure $animation)
No description
int
getReorderAnimationDuration()
No description
CanReorderRecords
reorderRecordsTriggerAction(Closure|null $callback)
No description
CanReorderRecords
reorderable(string|Closure|null $column = null, bool|Closure|null $condition = null)
No description
CanReorderRecords
authorizeReorder(bool|Closure $condition = true)
No description
Action
getReorderRecordsTriggerAction(bool $isReordering)
No description
string|null
getReorderColumn()
No description
bool
isReorderable()
No description
bool
isReordering()
No description
bool
isReorderAuthorized()
No description
CanSearchRecords
persistSearchInSession(bool|Closure $condition = true)
No description
CanSearchRecords
persistColumnSearchesInSession(bool|Closure $condition = true)
No description
CanSearchRecords
searchable(bool|null $condition = true)
No description
CanSearchRecords
searchDebounce(string|null $debounce)
No description
bool
isSearchable()
No description
bool
isSearchableByColumn()
No description
bool
persistsSearchInSession()
No description
bool
persistsColumnSearchesInSession()
No description
CanSearchRecords
searchPlaceholder(string|Closure|null $searchPlaceholder)
No description
string|null
getSearchPlaceholder()
No description
bool
hasSearch()
No description
Indicator
getSearchIndicator()
No description
array
getColumnSearchIndicators()
No description
string
getSearchDebounce()
No description
CanSearchRecords
searchOnBlur(bool|Closure $condition = true)
No description
bool
isSearchOnBlur()
No description
CanSortRecords
defaultSort(string|Closure|null $column, string|Closure|null $direction = 'asc')
No description
CanSortRecords
persistSortInSession(bool|Closure $condition = true)
No description
CanSortRecords
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
deprecated
No description
Closure|null
getDefaultSortQuery()
deprecated
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
bool
hasSummary()
No description
CanToggleColumns
toggleColumnsTriggerAction(Closure|null $callback)
No description
CanToggleColumns
columnToggleFormColumns(int|array|Closure $columns)
No description
CanToggleColumns
columnToggleFormMaxHeight(string|Closure|null $height)
No description
CanToggleColumns
columnToggleFormWidth(MaxWidth|string|Closure|null $width)
No description
Action
getToggleColumnsTriggerAction()
No description
Form
getColumnToggleForm()
No description
int|array
getColumnToggleFormColumns()
No description
string|null
getColumnToggleFormMaxHeight()
No description
MaxWidth|string|null
getColumnToggleFormWidth()
No description
bool
hasToggleableColumns()
No description
HasActions
actions(ActionGroup $actions, ActionsPosition|string|Closure|null $position = null)
No description
HasActions
pushActions(ActionGroup $actions)
No description
HasActions
actionsColumnLabel(Htmlable|Closure|null $label)
No description
HasActions
actionsAlignment(string|Closure|null $alignment = null)
No description
HasActions
actionsPosition(ActionsPosition|Closure|null $position = null)
No description
array
getActions()
No description
Action|null
getAction(string|array $name)
No description
array
getFlatActions()
No description
bool
hasAction(string $name)
No description
protected void
cacheAction(Action $action, bool $shouldOverwriteExistingAction = true)
No description
protected void
mergeCachedFlatActions(array $actions, bool $shouldOverwriteExistingActions = true)
No description
protected Action|null
getMountableModalActionFromAction(Action $action, array $modalActionNames, Model|null $mountedRecord = null)
No description
ActionsPosition
getActionsPosition()
No description
string|null
getActionsAlignment()
No description
Htmlable|null
getActionsColumnLabel()
No description
HasBulkActions
bulkActions(ActionGroup $actions)
No description
HasBulkActions
pushBulkActions(ActionGroup $actions)
No description
HasBulkActions
groupedBulkActions(array $actions)
No description
protected void
cacheBulkAction(BulkAction $action)
No description
protected void
mergeCachedFlatBulkActions(array $actions)
No description
protected void
removeCachedBulkActions(array $actions)
No description
HasBulkActions
checkIfRecordIsSelectableUsing(Closure|null $callback)
No description
HasBulkActions
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
HasBulkActions
selectable(bool|Closure|null $condition = true)
No description
bool
isSelectionEnabled()
No description
bool
selectsCurrentPageOnly()
No description
bool
checksIfRecordIsSelectable()
No description
HasBulkActions
recordCheckboxPosition(RecordCheckboxPosition|Closure|null $position = null)
No description
RecordCheckboxPosition
getRecordCheckboxPosition()
No description
HasColumns
columns(array $components)
No description
HasColumns
pushColumns(array $components)
No description
array
getColumns()
No description
array
getVisibleColumns()
No description
Column|null
getColumn(string $name)
No description
array
getColumnsLayout()
No description
Component|null
getCollapsibleColumnsLayout()
No description
bool
hasColumnGroups()
No description
bool
hasColumnsLayout()
No description
HasContent
content(Htmlable|Closure|null $content)
No description
HasContent
contentFooter(Htmlable|Closure|null $footer)
No description
HasContent
contentGrid(array|Closure|null $grid)
No description
Htmlable|null
getContent()
No description
array|null
getContentGrid()
No description
Htmlable|null
getContentFooter()
No description
HasEmptyState
emptyStateDescription(Htmlable|Closure|null $description)
No description
HasEmptyState
emptyState(Htmlable|Closure|null $emptyState)
No description
HasEmptyState
emptyStateActions(ActionGroup $actions, bool $shouldOverwriteExistingActions = false)
No description
HasEmptyState
pushEmptyStateActions(ActionGroup $actions, bool $shouldOverwriteExistingActions = false)
No description
HasEmptyState
emptyStateHeading(Htmlable|Closure|null $heading)
No description
HasEmptyState
emptyStateIcon(string|Closure|null $icon)
No description
Htmlable|null
getEmptyState()
No description
array
getEmptyStateActions()
No description
Htmlable|null
getEmptyStateDescription()
No description
Htmlable
getEmptyStateHeading()
No description
string
getEmptyStateIcon()
No description
array
getFilterIndicators()
No description
HasFilterIndicators
hiddenFilterIndicators(bool|Closure $condition = true)
No description
HasFilters
deferFilters(bool|Closure $condition = true)
No description
bool
hasDeferredFilters()
No description
HasFilters
filtersApplyAction(Closure|null $callback)
No description
HasFilters
deselectAllRecordsWhenFiltered(bool|Closure $condition = true)
No description
HasFilters
filters(array $filters, FiltersLayout|string|Closure|null $layout = null)
No description
HasFilters
pushFilters(array $filters)
No description
HasFilters
filtersFormColumns(int|array|Closure|null $columns)
No description
HasFilters
filtersFormMaxHeight(string|Closure|null $height)
No description
HasFilters
filtersFormWidth(MaxWidth|string|Closure|null $width)
No description
HasFilters
filtersLayout(FiltersLayout|Closure|null $filtersLayout)
No description
HasFilters
filtersTriggerAction(Closure|null $callback)
No description
HasFilters
persistFiltersInSession(bool|Closure $condition = true)
No description
array
getFilters()
No description
BaseFilter|null
getFilter(string $name)
No description
Form
getFiltersForm()
No description
HasFilters
filtersFormSchema(Closure|null $schema)
No description
array
getFiltersFormSchema()
No description
Action
getFiltersTriggerAction()
No description
Action
getFiltersApplyAction()
No description
int|array
getFiltersFormColumns()
No description
string|null
getFiltersFormMaxHeight()
No description
MaxWidth|string|null
getFiltersFormWidth()
No description
FiltersLayout
getFiltersLayout()
No description
bool
isFilterable()
No description
bool
persistsFiltersInSession()
No description
bool
shouldDeselectAllRecordsWhenFiltered()
No description
int
getActiveFiltersCount()
No description
bool
isFiltered()
No description
HasHeader
description(Htmlable|Closure|null $description)
No description
HasHeader
header(Htmlable|Closure|null $header)
No description
HasHeader
heading(Htmlable|Closure|null $heading)
No description
Htmlable|null
getHeader()
No description
Htmlable|null
getHeading()
No description
Htmlable|null
getDescription()
No description
HasHeaderActions
headerActionsPosition(HeaderActionsPosition|Closure|null $position = null)
No description
HasHeaderActions
headerActions(ActionGroup $actions, HeaderActionsPosition|Closure|null $position = null)
No description
HasHeaderActions
pushHeaderActions(ActionGroup $actions)
No description
HeaderActionsPosition
getHeaderActionsPosition()
No description
array
getHeaderActions()
No description
HasQuery
query(Builder|Closure|null $query)
No description
HasQuery
inverseRelationship(string|Closure|null $name)
No description
protected Builder
applyQueryScopes(Builder $query)
No description
Relation
getQuery()
No description
Builder|null
getRelationshipQuery()
No description
Relation
selectPivotDataInQuery(Relation $query)
No description
Builder|null
getRelationship()
No description
string|null
getInverseRelationship()
No description
Builder
getInverseRelationshipFor(Model $record)
No description
HasQueryStringIdentifier
queryStringIdentifier(string|Closure|null $identifier)
No description
string|null
getQueryStringIdentifier()
No description
HasRecordAction
recordAction(string|Closure|null $action)
No description
string|null
getRecordAction(Model $record)
No description
HasRecordClasses
recordClasses(array|string|Closure|null $classes)
No description
array
getRecordClasses(Model $record)
No description
HasRecords
allowDuplicates(bool|Closure $condition = true)
No description
HasRecords
modelLabel(string|Closure|null $label)
No description
HasRecords
pluralModelLabel(string|Closure|null $label)
No description
HasRecords
recordTitle(string|Closure|null $title)
No description
HasRecords
recordTitleAttribute(string|Closure|null $attribute)
No description
CursorPaginator
getRecords()
No description
string
getRecordKey(Model $record)
No description
string
getModel()
No description
bool
allowsDuplicates()
No description
string
getModelLabel()
No description
string
getPluralModelLabel()
No description
string
getRecordTitle(Model $record)
No description
bool
hasCustomRecordTitle()
No description
string|null
getRecordTitleAttribute()
No description
HasRecordUrl
openRecordUrlInNewTab(bool|Closure $condition = true)
No description
HasRecordUrl
recordUrl(string|Closure|null $url, bool|Closure $shouldOpenInNewTab = false)
No description
string|null
getRecordUrl(Model $record)
No description
bool
shouldOpenRecordUrlInNewTab(Model $record)
No description
final
__construct(HasTable $livewire)
No description