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 and how do you set the configuration options? #36

Closed
illuminate3 opened this issue Sep 4, 2016 · 2 comments
Closed

where and how do you set the configuration options? #36

illuminate3 opened this issue Sep 4, 2016 · 2 comments

Comments

@illuminate3
Copy link

For example:

Session::get('sweet_alert.confirmButtonText')

Where do I set this?

I have done:

Alert::success('Success Message', 'Optional Title')->persistent('Close');

Do I just chain?

Alert::success('Success Message', 'Optional Title')->confirmButtonText('Close');
@uxweb
Copy link
Owner

uxweb commented Sep 30, 2016

@illuminate3

Sorry to answer this late,

Actually, not all configuration options from the JavaScript sweet alert are available.

The reason for this is that the package only uses sweet alert to display the simplest of alerts

If you call any of the alert messages like (success|error|warning|info) an alert will be displayed with a message and an optional title and it will be dismissed after a few configurable seconds, and the other type of alert is the one that is persistent it will be shown with a button to let the user dismiss the alert.

As you can see, the package does not mess with alert confirmation or alert callbacks as those features supported by the sweet alert library must be implemented with JavaScript.

Hope this is informative for you.

Thanks for contributing and if you have more questions let me know!.

@uxweb uxweb closed this as completed Nov 17, 2016
@illuminate3
Copy link
Author

thanks

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