TableWidget
class TableWidget extends Widget implements HasActions, HasForms, HasInfolists, HasTable (View source)
Traits
Properties
static protected bool | $isLazy | from CanBeLazy | |
protected string|null | $placeholderHeight | from CanBeLazy | |
static protected bool | $isDiscovered | from Widget | |
static protected int|null | $sort | from Widget | |
static protected string | $view | ||
protected int | $columnSpan | from Widget | |
protected int | $columnStart | from Widget | |
string[] | $mountedActions | from InteractsWithActions | |
array<string,array<string,mixed>> | $mountedActionsArguments | from InteractsWithActions | |
array<string,array<string,mixed>> | $mountedActionsData | from InteractsWithActions | |
mixed | $defaultAction | from InteractsWithActions | |
mixed | $defaultActionArguments | from InteractsWithActions | |
protected Action> | $cachedActions | from InteractsWithActions | |
protected bool | $hasActionsModalRendered | from InteractsWithActions | |
Form | $mountedActionForm | from InteractsWithActions | |
string[] | $mountedFormComponentActions | from HasFormComponentActions | |
array<string,array<string,mixed>> | $mountedFormComponentActionsArguments | from HasFormComponentActions | |
array<string,array<string,mixed>> | $mountedFormComponentActionsData | from HasFormComponentActions | |
string[] | $mountedFormComponentActionsComponents | from HasFormComponentActions | |
ComponentContainer | $mountedFormComponentActionForm | from HasFormComponentActions | |
array | $componentFileAttachments | from InteractsWithForms | |
protected Form> | $cachedForms | from InteractsWithForms | |
protected bool | $hasCachedForms | from InteractsWithForms | |
protected bool | $isCachingForms | from InteractsWithForms | |
protected bool | $hasFormsModalRendered | from InteractsWithForms | |
protected array<string,mixed> | $oldFormState | from InteractsWithForms | |
protected bool | $hasInfolistsModalRendered | from InteractsWithInfolists | |
protected Infolist> | $cachedInfolists | from InteractsWithInfolists | |
string[] | $mountedInfolistActions | from InteractsWithInfolists | |
array<string,array<string,mixed>> | $mountedInfolistActionsData | from InteractsWithInfolists | |
string|null | $mountedInfolistActionsComponent | from InteractsWithInfolists | |
string|null | $mountedInfolistActionsInfolist | from InteractsWithInfolists | |
bool | $isTableLoaded | from CanDeferLoading | |
string|null | $tableGrouping | from CanGroupRecords | |
string|null | $tableGroupingDirection | from CanGroupRecords | |
int | $tableRecordsPerPage | from CanPaginateRecords | |
protected int|string|null | $defaultTableRecordsPerPageSelectOption | from CanPaginateRecords | |
bool | $isTableReordering | from CanReorderRecords | |
array | $tableColumnSearches | from CanSearchRecords | |
?string | $tableSearch | from CanSearchRecords | |
string|null | $tableSortColumn | from CanSortRecords | |
string|null | $tableSortDirection | from CanSortRecords | |
array | $toggledTableColumns | from CanToggleColumns | |
Form | $toggleTableColumnForm | from CanToggleColumns | |
string[] | $mountedTableActions | from HasActions | |
array<string,array<string,mixed>> | $mountedTableActionsData | from HasActions | |
array<string,array<string,mixed>> | $mountedTableActionsArguments | from HasActions | |
int | $mountedTableActionRecord | from HasActions | |
protected Model|null | $cachedMountedTableActionRecord | from HasActions | |
protected int|string|null | $cachedMountedTableActionRecordKey | from HasActions | |
mixed | $defaultTableAction | from HasActions | |
mixed | $defaultTableActionArguments | from HasActions | |
mixed | $defaultTableActionRecord | from HasActions | |
Form | $mountedTableActionForm | from HasActions | |
array | $selectedTableRecords | from HasBulkActions | |
string|null | $mountedTableBulkAction | from HasBulkActions | |
array<string,mixed> | $mountedTableBulkActionData | from HasBulkActions | |
protected Collection | $cachedSelectedTableRecords | from HasBulkActions | |
Form | $mountedTableBulkActionForm | from HasBulkActions | |
array<string,mixed> | $tableFilters | from HasFilters | |
array<string,mixed> | $tableDeferredFilters | from HasFilters | |
Form | $tableFiltersForm | from HasFilters | |
protected bool deprecated | $allowsDuplicates | from HasRecords | |
protected CursorPaginator|null | $cachedTableRecords | from HasRecords | |
protected Table | $table | from InteractsWithTable | |
protected bool | $hasTableModalRendered | from InteractsWithTable | |
protected bool | $shouldMountInteractsWithTable | from InteractsWithTable | |
static protected string|null deprecated | $heading |
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
No description
No description
No description
No description
No description
Details
static bool
isLazy()
No description
View
placeholder()
No description
array
getPlaceholderData()
No description
string|null
getPlaceholderHeight()
No description
in
Widget at line 32
static bool
canView()
No description
in
Widget at line 37
static int
getSort()
No description
in
Widget at line 45
int|string|array
getColumnSpan()
No description
in
Widget at line 53
int|string|array
getColumnStart()
No description
in
Widget at line 61
protected array
getViewData()
No description
in
Widget at line 66
static bool
isDiscovered()
No description
in
Widget at line 71
View
render()
No description
in
Widget at line 79
static WidgetConfiguration
make(array $properties = [])
No description
in
Widget at line 98
static array
getDefaultProperties()
No description
mixed
callMountedAction(array $arguments = [])
No description
protected void
afterActionCalled()
No description
mixed
mountAction(string $name, array $arguments = [])
No description
void
replaceMountedAction(string $name, array $arguments = [])
No description
bool
mountedActionShouldOpenModal(Action|null $mountedAction = null)
No description
bool
mountedActionHasForm(Action|null $mountedAction = null)
No description
protected void
mergeCachedActions(array $actions)
No description
protected void
configureAction(Action $action)
No description
Action|null
getMountedAction()
No description
protected array
getInteractsWithActionsForms()
No description
Form|null
getMountedActionForm(Action|null $mountedAction = null)
No description
protected Model|string|null
getMountedActionFormModel()
No description
Action|null
getAction(string|array $name)
No description
protected Action|null
getMountableModalActionFromAction(Action $action, array $modalActionNames)
No description
protected string|null
popMountedAction()
No description
protected void
resetMountedActionProperties()
No description
void
unmountAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)
No description
protected void
cacheMountedActionForm(Action|null $mountedAction = null)
No description
protected void
closeActionModal()
No description
protected void
openActionModal()
No description
string|null
getActiveActionsLocale()
No description
Infolist
mountedActionInfolist()
No description
mixed
callMountedFormComponentAction(array $arguments = [])
No description
mixed
mountFormComponentAction(string $component, string $name, array $arguments = [])
No description
protected void
cacheMountedFormComponentActionForm(Action|null $mountedAction = null)
No description
bool
mountedFormComponentActionShouldOpenModal(Action|null $mountedAction = null)
No description
bool
mountedFormComponentActionHasForm(Action|null $mountedAction = null)
No description
Action|null
getMountedFormComponentAction(int|null $actionNestingIndex = null)
No description
protected Form|null
getMountedFormComponentActionForm(int|null $actionNestingIndex = null, Action|null $mountedAction = null)
No description
Component|null
getMountedFormComponentActionComponent(int|null $actionNestingIndex = null)
No description
protected void
resetMountedFormComponentActionProperties()
No description
protected string|null
popMountedFormComponentAction()
No description
void
unmountFormComponentAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)
No description
protected void
closeFormComponentActionModal(bool $shouldCloseModal = true)
No description
protected void
openFormComponentActionModal()
No description
mixed
__get(string $property)
No description
void
dispatchFormEvent(mixed ...$args)
No description
void
fillFormDataForTesting(array $state = [])
No description
protected void
unsetMissingNumericArrayKeys(array $target, array $state)
No description
TemporaryUploadedFile|null
getFormComponentFileAttachment(string $statePath)
No description
string|null
getFormComponentFileAttachmentUrl(string $statePath)
No description
array
getFormSelectOptionLabels(string $statePath)
No description
string|null
getFormSelectOptionLabel(string $statePath)
No description
array
getFormSelectOptions(string $statePath)
No description
array
getFormSelectSearchResults(string $statePath, string $search)
No description
void
deleteUploadedFile(string $statePath, string $fileKey)
No description
array|null
getFormUploadedFiles(string $statePath)
No description
void
removeFormUploadedFile(string $statePath, string $fileKey)
No description
void
reorderFormUploadedFiles(string $statePath, array $fileKeys)
No description
array
validate($rules = null, array<string,string> $messages = [], array<string,string> $attributes = [])
No description
array<string,mixed>
validateOnly(string $field, array<string,array> $rules = null, array<string,string> $messages = [], array<string,string> $attributes = [], array<string,string> $dataOverrides = [])
No description
protected void
onValidationError(ValidationException $exception)
No description
protected array
prepareForValidation(array<string,mixed> $attributes)
No description
string|null
getFilamentTranslatableContentDriver()
No description
TranslatableContentDriver|null
makeFilamentTranslatableContentDriver()
No description
string|null
getActiveFormsLocale()
No description
void
updatingInteractsWithForms(string $statePath)
No description
mixed
getOldFormState(string $statePath)
No description
void
updatedInteractsWithForms(string $statePath)
No description
protected Form|null
cacheForm(string $name, Form|Closure|null $form)
No description
protected array
cacheForms()
No description
array
getTraitForms()
No description
protected bool
hasCachedForm(string $name)
No description
Form|null
getForm(string $name)
No description
array
getCachedForms()
No description
protected array
getForms()
No description
protected Model|string|null
getFormModel()
deprecated
deprecated
No description
protected array
getFormSchema()
deprecated
deprecated
No description
protected string|null
getFormContext()
deprecated
deprecated
No description
protected string|null
getFormStatePath()
deprecated
deprecated
No description
array
getRules()
No description
protected array
getValidationAttributes()
No description
protected Form
makeForm()
No description
bool
isCachingForms()
No description
Infolist
mountedFormComponentActionInfolist()
No description
Infolist|null
getInfolist(string $name)
No description
array
getCachedInfolists()
No description
protected bool
hasCachedInfolist(string $name)
No description
mixed
callMountedInfolistAction(array $arguments = [])
No description
mixed
mountInfolistAction(string $name, string|null $component = null, string|null $infolist = null)
No description
protected void
openInfolistActionModal()
No description
bool
mountedInfolistActionShouldOpenModal(Action|null $mountedAction = null)
No description
bool
mountedInfolistActionHasForm(Action|null $mountedAction = null)
No description
Action|null
getMountedInfolistAction()
No description
Component|null
getMountedInfolistActionComponent()
No description
Form|null
getMountedInfolistActionForm(Action|null $mountedAction = null)
No description
void
unmountInfolistAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)
No description
protected Infolist
makeInfolist()
No description
protected array
getInteractsWithInfolistsForms()
No description
protected bool
isTableStriped()
deprecated
deprecated
No description
bool
isTableLoadingDeferred()
deprecated
deprecated
No description
void
loadTable()
No description
bool
isTableLoaded()
No description
Group|null
getTableGrouping()
No description
void
updatedTableGroupColumn()
No description
string|null
getTableGroupingDirection()
No description
protected Builder
applyGroupingToTableQuery(Builder $query)
No description
void
updatedTableRecordsPerPage()
No description
protected CursorPaginator
paginateTableQuery(Builder $query)
No description
int|string|null
getTableRecordsPerPage()
No description
int
getTablePage()
No description
int|string
getDefaultTableRecordsPerPageSelectOption()
No description
string
getTablePaginationPageName()
No description
string
getTablePerPageSessionKey()
No description
protected array|null
getTableRecordsPerPageSelectOptions()
deprecated
deprecated
No description
protected bool
isTablePaginationEnabled()
deprecated
deprecated
No description
protected string|null
getTablePollingInterval()
deprecated
deprecated
No description
void
reorderTable(array $order)
No description
void
toggleTableReordering()
No description
bool
isTableReordering()
No description
protected bool
isTablePaginationEnabledWhileReordering()
deprecated
deprecated
No description
protected string|null
getTableReorderColumn()
deprecated
deprecated
No description
void
updatedTableSearch()
No description
void
updatedTableColumnSearches($value = null, string|null $key = null)
No description
protected Builder
applySearchToTableQuery(Builder $query)
No description
protected Builder
applyColumnSearchesToTableQuery(Builder $query)
No description
protected array
extractTableSearchWords(string $search)
No description
protected Builder
applyGlobalSearchToTableQuery(Builder $query)
No description
string|null
getTableSearch()
No description
bool
hasTableSearch()
No description
void
resetTableSearch()
No description
void
resetTableColumnSearch(string $column)
No description
void
resetTableColumnSearches()
No description
Indicator
getTableSearchIndicator()
No description
array
getTableColumnSearchIndicators()
No description
protected array
castTableColumnSearches(array $searches)
No description
array
getTableColumnSearches()
No description
string
getTableSearchSessionKey()
No description
string
getTableColumnSearchesSessionKey()
No description
protected bool
shouldPersistTableSearchInSession()
deprecated
deprecated
No description
protected bool
shouldPersistTableColumnSearchInSession()
deprecated
deprecated
No description
void
sortTable(string|null $column = null, string|null $direction = null)
No description
string|null
getTableSortColumn()
No description
string|null
getTableSortDirection()
No description
void
updatedTableSortColumn()
No description
void
updatedTableSortDirection()
No description
protected Builder
applySortingToTableQuery(Builder $query)
No description
protected Builder
applyDefaultSortingToTableQuery(Builder $query)
No description
protected string|null
getDefaultTableSortColumn()
deprecated
deprecated
No description
protected string|null
getDefaultTableSortDirection()
deprecated
deprecated
No description
string
getTableSortSessionKey()
No description
protected bool
shouldPersistTableSortInSession()
deprecated
deprecated
No description
Builder
getAllTableSummaryQuery()
No description
Builder
getPageTableSummaryQuery()
No description
array
getTableSummarySelectedState(Builder $query, Closure|null $modifyQueryUsing = null)
No description
protected array
getDefaultTableColumnToggleState()
No description
void
updatedToggledTableColumns()
No description
Form
getTableColumnToggleForm()
No description
protected array
getTableColumnToggleFormSchema()
No description
bool
isTableColumnToggledHidden(string $name)
No description
string
getTableColumnToggleFormStateSessionKey()
No description
protected int|array
getTableColumnToggleFormColumns()
deprecated
deprecated
No description
protected string|null
getTableColumnToggleFormWidth()
deprecated
deprecated
No description
protected string|null
getTableColumnToggleFormMaxHeight()
deprecated
deprecated
No description
protected void
configureTableAction(Action $action)
No description
mixed
callMountedTableAction(array $arguments = [])
No description
void
mountedTableActionRecord(int|string|null $record)
No description
mixed
mountTableAction(string $name, string|null $record = null, array $arguments = [])
No description
void
replaceMountedTableAction(string $name, string|null $record = null, array $arguments = [])
No description
bool
mountedTableActionShouldOpenModal(Action|null $mountedAction = null)
No description
bool
mountedTableActionHasForm(Action|null $mountedAction = null)
No description
Action|null
getMountedTableAction()
No description
Form|null
getMountedTableActionForm(Action|null $mountedAction = null)
No description
int|string|null
getMountedTableActionRecordKey()
No description
Model|null
getMountedTableActionRecord()
No description
protected string|null
popMountedTableAction()
No description
protected void
resetMountedTableActionProperties()
No description
void
unmountTableAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)
No description
protected void
cacheMountedTableActionForm(Action|null $mountedAction = null)
No description
protected void
closeTableActionModal()
No description
protected void
openTableActionModal()
No description
protected array
getTableActions()
deprecated
deprecated
No description
protected string|null
getTableActionsColumnLabel()
deprecated
deprecated
No description
Infolist
mountedTableActionInfolist()
No description
protected void
configureTableBulkAction(BulkAction $action)
No description
mixed
callMountedTableBulkAction(array $arguments = [])
No description
mixed
mountTableBulkAction(string $name, array|null $selectedRecords = null)
No description
protected void
cacheMountedTableBulkActionForm(BulkAction|null $mountedBulkAction = null)
No description
void
replaceMountedTableBulkAction(string $name, array|null $selectedRecords = null)
No description
protected void
resetMountedTableBulkActionProperties()
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
getAllSelectableTableRecordKeys()
No description
array
getGroupedSelectableTableRecordKeys(string $group)
No description
int
getAllSelectableTableRecordsCount()
No description
Collection
getSelectedTableRecords(bool $shouldFetchSelectedRecords = true)
No description
protected void
closeTableBulkActionModal()
No description
protected void
openTableBulkActionModal()
No description
bool
shouldSelectCurrentPageOnly()
deprecated
deprecated
No description
bool
shouldDeselectAllRecordsWhenTableFiltered()
deprecated
deprecated
No description
BulkAction|null
getMountedTableBulkAction()
No description
Form|null
getMountedTableBulkActionForm(BulkAction|null $mountedBulkAction = null)
No description
protected array
getTableBulkActions()
deprecated
deprecated
No description
Closure|null
isTableRecordSelectable()
deprecated
deprecated
No description
Infolist
mountedTableBulkActionInfolist()
No description
mixed
callTableColumnAction(string $name, string $recordKey)
No description
mixed
updateTableColumnState(string $column, string $record, mixed $input)
No description
protected array
getTableColumns()
deprecated
deprecated
No description
protected View|null
getTableContent()
deprecated
deprecated
No description
protected array|null
getTableContentGrid()
deprecated
deprecated
No description
protected View|null
getTableContentFooter()
deprecated
deprecated
No description
protected View|null
getTableEmptyState()
deprecated
deprecated
No description
protected array
getTableEmptyStateActions()
deprecated
deprecated
No description
protected string|null
getTableEmptyStateDescription()
deprecated
deprecated
No description
protected string|null
getTableEmptyStateHeading()
deprecated
deprecated
No description
protected string|null
getTableEmptyStateIcon()
deprecated
deprecated
No description
Form
getTableFiltersForm()
No description
void
updatedTableFilters()
No description
protected void
handleTableFilterUpdates()
No description
void
removeTableFilter(string $filterName, string|null $field = null, bool $isRemovingAllFilters = false)
No description
void
removeTableFilters()
No description
void
resetTableFiltersForm()
No description
void
applyTableFilters()
No description
protected Builder
applyFiltersToTableQuery(Builder $query)
No description
array|null
getTableFilterState(string $name)
No description
string
parseTableFilterName(string $name)
No description
string
getTableFiltersSessionKey()
No description
protected array
getTableFilters()
deprecated
deprecated
No description
protected string|null
getTableFiltersFormWidth()
deprecated
deprecated
No description
protected string|null
getTableFiltersFormMaxHeight()
deprecated
deprecated
No description
protected bool
shouldPersistTableFiltersInSession()
deprecated
deprecated
No description
protected Htmlable|null
getTableDescription()
deprecated
deprecated
No description
protected Htmlable|null
getTableHeader()
deprecated
deprecated
No description
protected array
getTableHeaderActions()
deprecated
deprecated
No description
protected Htmlable|null
getTableHeading()
deprecated
deprecated
No description
protected Closure|null
getTableRecordActionUsing()
deprecated
deprecated
No description
protected string|null
getTableRecordAction()
deprecated
deprecated
No description
protected Closure|null
getTableRecordClassesUsing()
deprecated
deprecated
No description
Builder
getFilteredTableQuery()
No description
Builder
filterTableQuery(Builder $query)
No description
Builder
getFilteredSortedTableQuery()
No description
Builder
getTableQueryForExport()
No description
protected CursorPaginator
hydratePivotRelationForTableRecords(CursorPaginator $records)
No description
CursorPaginator
getTableRecords()
No description
protected Model|null
resolveTableRecord(string|null $key)
No description
Model|null
getTableRecord(string|null $key)
No description
string
getTableRecordKey(Model $record)
No description
int
getAllTableRecordsCount()
No description
void
flushCachedTableRecords()
No description
bool
allowsDuplicates()
deprecated
deprecated
No description
string|null
getTableRecordTitle(Model $record)
deprecated
deprecated
No description
string|null
getTableModelLabel()
deprecated
deprecated
No description
string|null
getTablePluralModelLabel()
deprecated
deprecated
No description
protected Closure|null
getTableRecordUrlUsing()
deprecated
deprecated
No description
void
bootedInteractsWithTable()
No description
void
mountInteractsWithTable()
No description
Table
getTable()
No description
protected Table
makeTable()
No description
protected string|null
getTableQueryStringIdentifier()
No description
string
getIdentifiedTableQueryStringPropertyNameFor(string $property)
No description
protected array
getInteractsWithTableForms()
No description
string|null
getActiveTableLocale()
No description
void
resetPage(?string $pageName = null)
No description
protected Relation|null
getTableQuery()
deprecated
deprecated
No description
protected void
normalizeTableFilterValuesFromQueryString(array $data)
No description
void
resetTable()
No description