Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

->emptyStateDescription() does not work as expected when using configureUsing() in a provider. #14990

Open
RalphMRivera opened this issue Dec 3, 2024 · 1 comment
Labels
Milestone

Comments

@RalphMRivera
Copy link
Contributor

RalphMRivera commented Dec 3, 2024

Package

filament/filament

Package Version

3.2.127

Laravel Version

11.34.2

Livewire Version

v3

PHP Version

8.2.15

Problem description

When configuring the default behavior for a table in a service provider, the empty state heading can be defined, but the empty state description can not.

Expected behavior

The defaults for both the empty state heading and description should appear on a list page that has no records.

Steps to reproduce

Step 1 - Add the following to the provider file:

Table::configureUsing(function (Table $table): void {
    $table
        ->emptyStateDescription('This is my custom description!')
        ->emptyStateHeading('This is my custom heading!');
});

Step 2 - Go to an empty list page.

Note: The description does work if manually added to the list page.

class CustomerListPage extends ListRecords
{
    public function table(Table $table): Table
    {
        return $table->emptyStateDescription('This is my custom description!');
    }
}

Reproduction repository (issue will be closed if this is not valid)

https://github.com/RalphMRivera/filament-issue

Relevant log output

No response

Donate 💰 to fund this issue

  • You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
  • 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
  • Thank you in advance for helping us make maintenance sustainable!
Fund with Polar
@RalphMRivera
Copy link
Contributor Author

@danharrin danharrin added this to the v3 milestone Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

3 participants
@RalphMRivera @danharrin and others