Skip to content

[Feature] Added more methods #173

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

Merged
merged 2 commits into from
Jul 13, 2025
Merged

[Feature] Added more methods #173

merged 2 commits into from
Jul 13, 2025

Conversation

jantinnerezo
Copy link
Owner

What's added?

  • Added allowOutsideClick method with boolean type parameter "allowed" default is true
  • Added allowEscapeKey method with boolean type parameter "allowed" default is true
  • Allow null parameter type on timer method

Usage

For example, if you don't want to close alert on outside click, escape key and disable auto close.

LivewireAlert::question()
  ->title("Are you sure do want to approve proposal?")
  ->allowOutsideClick(false) // new method
  ->allowEscapeKey(false) // new method
  ->timer(null) // You can pass null now instead of only integer and that disables auto closing

@jantinnerezo jantinnerezo self-assigned this Jul 13, 2025
@jantinnerezo jantinnerezo merged commit 5e0eeeb into master Jul 13, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

1 participant