Skip to content

Commit

Permalink
v2 readme
Browse files Browse the repository at this point in the history
  • Loading branch information
avil13 committed May 14, 2019
1 parent 053bfe4 commit d1f67a1
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Vue.use(VueSweetalert2, options)
```html
// example-vue-component.vue
<template>
<button v-on:click="showAlert">Hello world</button>
<button @click="showAlert">Hello world</button>
</template>

<script>
Expand Down Expand Up @@ -103,3 +103,30 @@ Or pass in global options like this:
## The documentation for `sweetalert2`, you can find [here](https://sweetalert2.github.io/).
---
# Additional options
In some cases, there was a need to expand sweetalert2. And added more options.
| options | type | default |
|---|---|---|---|
| [includeCss](#includecss) | boolean | false |
#### includeCss
```js
// main.js | main.ts
Vue.use(VueSweetalert2, { includeCss: false });
```
```scss
// style.scss
@import '~sweetalert2/src/variables';

$swal2-background: #990000;

@import '~sweetalert2/src/sweetalert2';
```

0 comments on commit d1f67a1

Please sign in to comment.