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

How to use when passing options? #55

Closed
realtebo opened this issue May 30, 2019 · 1 comment
Closed

How to use when passing options? #55

realtebo opened this issue May 30, 2019 · 1 comment

Comments

@realtebo
Copy link

realtebo commented May 30, 2019

We can

this.$swal('Hello Vue world!!!');

But how can we pass, for example this ?

{ toast: true } 

I tried manually using the .fire() method

this.$swal.fire({
            title: this.title,
            type: this.type,
            toast: true
});

but

this.$swal.fire is not a function
@jordanboston
Copy link

Try using just:

this.$swal({
            title: this.title,
            type: this.type,
            toast: true
});

@avil13 avil13 closed this as completed in 34267e8 Jun 26, 2019
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