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

Allow Table static default Action Size and View #12417

Closed
wants to merge 3 commits into from
Closed

Allow Table static default Action Size and View #12417

wants to merge 3 commits into from

Conversation

olehasoft
Copy link
Contributor

@olehasoft olehasoft commented Apr 20, 2024

Description

Allow a simple default initialization method for the size and view actions of all tables.

Visual changes

use Filament\Tables;
use Filament\Support\Enums;

Tables\Table::$defaultActionsColumnActionSize = Enums\ActionSize::Large;
Tables\Table::$defaultActionsColumnActionView = Tables\Actions\Action::ICON_BUTTON_VIEW;

Table Actions Before
Table Actions After

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@danharrin
Copy link
Member

I think you can use this https://filamentphp.com/docs/3.x/tables/advanced#global-settings but with the table Action class instead of Table

@danharrin danharrin closed this Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants