Configuration
Publish the config file when you need to customize datagrid behavior:
The config is published to config/livewire-datatables.php:
return [
'settings' => [
'datetime-format' => 'd.m.Y H:i:s',
'date-format' => 'd.m.Y',
'pagination-options' => [0, 10, 15, 25, 50, 100],
'escape-html' => false,
],
];
Pagination Options
pagination-options controls the values available in the table settings panel.
The value 0 enables auto-sizing based on the visible viewport height.
HTML Escaping
escape-html defaults to false to preserve 0.x rendering behavior.
Set it to true if labels, generated attributes, options, and button values should be escaped by default: