Skip to content

Commit

Permalink
Docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
realrashid committed Nov 27, 2019
1 parent 084f265 commit 3d62695
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `sweet-alert` will be documented in this file.

## v3.0.1 - 2019-11-27
- Updated `animation($showClass = [], $hideClass = [])` to animation($showAnimation, $hideAnimation)
- Docs Updated
- Fixed animations issue

## v3.0 - 2019-11-20
- Upgraded SweetAlert2 to latest version
- Added option to pass SweetAlert2 CDN link from included view
Expand Down
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![logo](https://github.com/sweetalert2/sweetalert2/raw/master/assets/swal2-logo.png)
<h1>sweet-alert <small>3.0</small></h1>
<h1>sweet-alert <small>3.0.1</small></h1>

<h4>By <strong>Rashid Ali</strong></h4>

Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `sweet-alert` will be documented in this file.

## v3.0.1 - 2019-11-27
- Updated `animation($showClass = [], $hideClass = [])` to animation($showAnimation, $hideAnimation)
- Docs Updated
- Fixed animations issue

## v3.0 - 2019-11-21
- Upgraded SweetAlert2 to latest version
- Added option to pass SweetAlert2 CDN link from included view
Expand Down
11 changes: 5 additions & 6 deletions docs/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,17 @@
|--------------------------------------------------------------------------
| Animation
|--------------------------------------------------------------------------
| If set to false, modal CSS animation will be disabled.
| Custom animation with [Animate.css](https://daneden.github.io/animate.css/)
| If set to false, modal CSS animation will be use default ones.
| For specific modal just use the animation() helper method.
|
*/

'animation' => [
'enable' => env('SWEET_ALERT_ANIMATION_ENABLE', true),
'showClass' => env('SWEET_ALERT_ANIMATION_SHOW_CLASS', 'animated fadeInDown faster'),
'hideClass' => env('SWEET_ALERT_ANIMATION_HIDE_CLASS', 'animated fadeOutUp faster'),
'enable' => env('SWEET_ALERT_ANIMATION_ENABLE', false),
],

'animatecss' => env('SWEET_ALERT_ANIMATECSS', 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css'),
'animatecss' => env('SWEET_ALERT_ANIMATECSS', 'https://cdn.jsdelivr.net/npm/animate.css'),

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -136,6 +135,6 @@
'toast_close_button' => env('SWEET_ALERT_MIDDLEWARE_TOAST_CLOSE_BUTTON', true),

'alert_auto_close' => env('SWEET_ALERT_MIDDLEWARE_ALERT_AUTO_CLOSE', 5000),
]
],

```
8 changes: 2 additions & 6 deletions docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,19 +178,15 @@ alert('Title','Lorem Lorem Lorem', 'success')->background('#fff');
##### Animation

`
animation($showClass = [], $hideClass = [])
animation($showAnimation, $hideAnimation)
`
> If set to false, modal CSS animation will be disabled.

Custom animation with [Animate.css](https://daneden.github.io/animate.css/)

``` php
// example:
alert()->info('InfoAlert','Lorem ipsum dolor sit amet.')
->animation(
[ 'popup' => 'animated tada faster'],
[ 'popup' => 'animated fadeInUp faster']
);
->animation('tada faster','fadeInUp faster');
```

> Note: Animate.css CDN link is imported in package config file,
Expand Down
3 changes: 3 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">

<!-- dns-prefetch -->
<link rel="dns-prefetch" href="//poser.pugx.org">

<meta property="og:site_name" content="Laravel SweetAlert by Rashid Ali">
<meta property="og:title" content="sweet-alert">
<meta property="og:description" name="description"
Expand Down

0 comments on commit 3d62695

Please sign in to comment.