We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to hide OK button by adding ->persistent(false, false) & ->showConfirmButton(false) But it doesn't work.
What I should do to hide (OK button) when I don't need it?
The text was updated successfully, but these errors were encountered:
Hey @greatsami , If you want to hide the Confirm Button just use the ->persistent(false,false)
->persistent(false,false)
// example: alert()->success('SuccessAlert','Lorem ipsum dolor sit amet.')->persistent(false,false);
The above example will hide the Confirm Button and Cancel Button too.
Sorry, something went wrong.
Hi @realrashid
I did it but it doesn't work.
Actually, I updated /vendor/realrashid/sweet-alert/src/Toaster.php
public function showConfirmButton($btnText = 'Ok', $btnColor = '#3085d6') { $this->config['showConfirmButton'] = $btnText != '' || $btnText != false ? true : false; $this->config['confirmButtonText'] = $btnText; $this->config['confirmButtonColor'] = $btnColor; $this->config['allowOutsideClick'] = $btnText != '' || $btnText != false ? true : false; // $this->removeTimer(); $this->flash(); return $this; }
Then I used like this:
alert()->success('Created successfully')->showConfirmButton(false)->timerProgressBar();
And it is worked with me.
No branches or pull requests
I'm trying to hide OK button by adding ->persistent(false, false) & ->showConfirmButton(false)
But it doesn't work.
What I should do to hide (OK button) when I don't need it?
The text was updated successfully, but these errors were encountered: