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

Where can I change the appearance location? #88

Closed
Bxnnet opened this issue Sep 16, 2022 · 3 comments
Closed

Where can I change the appearance location? #88

Bxnnet opened this issue Sep 16, 2022 · 3 comments

Comments

@Bxnnet
Copy link

Bxnnet commented Sep 16, 2022

Hey I just started using Flasher in an Symfony project but I cant find an option to change the notification locations. Currently it appears at the right side on the top but I would like it to be on the right bottom location.
Is that possible?

Thanks in advance!

@yoeunes
Copy link
Member

yoeunes commented Sep 20, 2022

Hello @Bxnnet, I'm sorry for the late response.
You can do it for all your notification at once in the config file

# config/packages/flasher.yaml
flasher:
    default: flasher
    themes:
        flasher:
            options:
                position: bottom-right

or for individual notification:

public function action(FlasherInterface $flasher): Response
{
    $flasher
        ->option('position', 'bottom-right')
        ->addSuccess('Data has been saved successfully!');

@Bxnnet
Copy link
Author

Bxnnet commented Sep 20, 2022

thank you mate :) @yoeunes

@yoeunes
Copy link
Member

yoeunes commented Sep 20, 2022

You're welcome, hope it works for you

@yoeunes yoeunes closed this as completed Oct 29, 2022
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

2 participants