Defaults
Override these protected static properties in a Table subclass, or use the corresponding fluent
method for one instance. A fluent override wins over the inherited class default.
Table settings
Section titled “Table settings”| Property | Type | Default | Fluent method |
|---|---|---|---|
$defaultPageSize |
int |
10 |
pageSize() |
$defaultPageSizeOptions |
array |
[10, 25, 50, 100] |
pageSizeOptions() |
$defaultPagination |
bool |
true |
pagination() |
$defaultSorting |
bool |
true |
sorting() |
$defaultMultiSort |
bool |
true |
multiSort() |
$defaultSelection |
bool |
false |
selection() |
$defaultSelectionMode |
SelectionMode |
SelectionMode::Multiple |
selectionMode() |
$defaultAutoColumns |
bool |
false |
autoColumns() |
$defaultAutoFilters |
bool |
true |
autoFilters() |
$defaultFilterMode |
FilterMode |
FilterMode::Basic |
filterMode() |
$defaultRefreshButton |
bool |
true |
refreshButton() |
$defaultRowKey |
string |
Uninitialized; inferred from source | rowKey() |
SelectionMode and FilterMode are in InertiaX\Components\Table\Enums.
For example, inside a subclass:
protected static int $defaultPageSize = 25;protected static bool $defaultRefreshButton = false;Column settings
Section titled “Column settings”Explicit column options override these table-wide defaults.
| Property | Type | Default | Fluent method |
|---|---|---|---|
$defaultSortableColumns |
bool |
false |
sortableColumns() |
$defaultSearchableColumns |
bool |
false |
searchableColumns() |
$defaultFilterableColumns |
bool |
false |
filterableColumns() |
$defaultCopyableColumns |
bool |
false |
copyableColumns() |
$defaultToggleableColumns |
bool |
false |
toggleableColumns() |
$defaultVisibleColumns |
bool |
true |
visibleColumns() |
$defaultWrapColumns |
bool |
false |
wrapColumns() |
$defaultTruncateColumns |
?int |
0 (disabled) |
truncateColumns() |
React settings
Section titled “React settings”Search and filter requests share a 300 ms debounce. Set debounceMs on <InertiaX> to override it.
Unknown custom renderers use a diagnosed fallback unless the runtime’s diagnostics.fallback is
'error'. See Custom type diagnostics.