Empty state on Dashboard Table Widget

Hello! I am trying to set emptyState properties on a table widget used on the dashboard, but the override values are not showing. The heading value is showing. I am fairly new to Livewire and Filament.
class OpenPendingMlsTickets extends BaseWidget
{
protected static ?string $heading = 'Open/Pending MLS Tickets';

protected $defaultPaginationPageOption = 5;

protected ?string $emptyStateDescription = 'No open or pending tickets';

protected ?string $emptyStateIcon = 'heroicon-o-check-circle';

protected function getTableQuery(): Builder
{
return UpdateRequest::where('status','<>','Closed')->with(['model.spec']);
}

protected function getTableColumns(): array
{
....
class OpenPendingMlsTickets extends BaseWidget
{
protected static ?string $heading = 'Open/Pending MLS Tickets';

protected $defaultPaginationPageOption = 5;

protected ?string $emptyStateDescription = 'No open or pending tickets';

protected ?string $emptyStateIcon = 'heroicon-o-check-circle';

protected function getTableQuery(): Builder
{
return UpdateRequest::where('status','<>','Closed')->with(['model.spec']);
}

protected function getTableColumns(): array
{
....
1 Reply
megseegmiller
megseegmiller2mo ago
Of course, I figured out the solution on my own after posting here! I needed to switch to using the table method and chaining those emptyState methods on the $table instance:
No description
Want results from more Discord servers?
Add your server