Skip to content

[Feature] Added more methods#173

Merged
jantinnerezo merged 2 commits intomasterfrom
feat/more-methods
Jul 13, 2025
Merged

[Feature] Added more methods#173
jantinnerezo merged 2 commits intomasterfrom
feat/more-methods

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