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

Is there way to integrate with Filement? #4

Open
parmonov98 opened this issue Oct 14, 2024 · 5 comments
Open

Is there way to integrate with Filement? #4

parmonov98 opened this issue Oct 14, 2024 · 5 comments

Comments

@parmonov98
Copy link

parmonov98 commented Oct 14, 2024

I'd like to get it working with Form components of filament

@nunomaduro
Copy link
Contributor

cc @danharrin

@atmonshi
Copy link

yes you can add ->extraAttributes(['data-pan'=>'track name']) to any action you want :)

@iamdavidhill
Copy link
Contributor

@nunomaduro Can you confirm @atmonshi's suggestion works? If so I can update the Readme.

@atmonshi
Copy link

you can also configure ALL actions in the panel globally by adding this to any service provider:

Action::configureUsing(function (Action $checkbox): void {
    $checkbox
        ->extraAttributes(fn() => ['data-pan' => $checkbox->getLabel()]);
});

@Hamidasl
Copy link

18d36be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants