Skip to content

Commit d313c8d

Browse files
author
Shiburaj Pappu
authored
Merge pull request #3 from lopuk/patch-1
Updated README.md to fix spelling mistakes
2 parents 5beb162 + 0e5c6b8 commit d313c8d

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,55 +53,55 @@ use Softon\SweetAlert\Facades\SWAL;
5353

5454

5555
// Params: [Title,Text,Type,Options[]]
56-
SWAL::message('Good Job','You have successfully Loged In!','info');
57-
SWAL::message('Good Job','You have successfully Loged In!','error');
58-
SWAL::message('Good Job','You have successfully Loged In!','success',['timer'=>2000]);
56+
SWAL::message('Good Job','You have successfully logged In!','info');
57+
SWAL::message('Good Job','You have successfully logged In!','error');
58+
SWAL::message('Good Job','You have successfully logged In!','success',['timer'=>2000]);
5959

60-
// For All avialable options please refer the SweetAlert 2 Docs
60+
// For All available options please refer the SweetAlert 2 Docs
6161

6262
```
6363

6464
Showing a Message to User using the swal helper function:-
6565
```php
6666
swal('Your Title','Text');
67-
swal()->message('Good Job','You have successfully Loged In!','info');
68-
swal()->message('Good Job','You have successfully Loged In!','error');
69-
swal()->message('Good Job','You have successfully Loged In!','success',['timer'=>2000]);
67+
swal()->message('Good Job','You have successfully logged In!','info');
68+
swal()->message('Good Job','You have successfully logged In!','error');
69+
swal()->message('Good Job','You have successfully logged In!','success',['timer'=>2000]);
7070
```
7171

7272
Message Type Can be 'warning', 'error', 'success', 'info' and 'question'. Based on this there are some convinence function that can be used instead of the message method.:-
7373
```php
7474
// Params [Title, Text, Options]
75-
swal()->warning('Good Job','You have successfully Loged In!',[]);
76-
swal()->error('Good Job','You have successfully Loged In!',[]);
77-
swal()->success('Good Job','You have successfully Loged In!',[]);
78-
swal()->info('Good Job','You have successfully Loged In!',[]);
79-
swal()->question('Good Job','You have successfully Loged In!',[]);
75+
swal()->warning('Good Job','You have successfully logged In!',[]);
76+
swal()->error('Good Job','You have successfully logged In!',[]);
77+
swal()->success('Good Job','You have successfully logged In!',[]);
78+
swal()->info('Good Job','You have successfully logged In!',[]);
79+
swal()->question('Good Job','You have successfully logged In!',[]);
8080
```
8181

8282
To show modal which will autoclose after few seconds:-
8383
```php
84-
swal()->autoclose(2000)->message('Good Job','You have successfully Loged In!','info');
85-
swal()->autoclose(5000)->success('Good Job','You have successfully Loged In!');
84+
swal()->autoclose(2000)->message('Good Job','You have successfully logged In!','info');
85+
swal()->autoclose(5000)->success('Good Job','You have successfully logged In!');
8686
```
8787

8888
To show a toast modal which will autoclose after few seconds:-
8989
```php
90-
swal()->toast()->autoclose(2000)->message('Good Job','You have successfully Loged In!','info');
90+
swal()->toast()->autoclose(2000)->message('Good Job','You have successfully logged In!','info');
9191
```
9292

9393
To change confirm button text:-
9494
```php
95-
swal()->button('Close Me')->message('Good Job','You have successfully Loged In!','info');
95+
swal()->button('Close Me')->message('Good Job','You have successfully logged In!','info');
9696

9797
// Button Params [Button Text,Button Colour, SWAL Style Enable / Disable, Style Class for Buttons]
98-
swal()->button('Close Me','#efefef',false,'btn btn-primary')->info('Good Job','You have successfully Loged In!');
98+
swal()->button('Close Me','#efefef',false,'btn btn-primary')->info('Good Job','You have successfully logged In!');
9999
```
100100

101101
To change position of the modal:-
102102
```php
103103
// Possible Posions : 'top', 'top-left', 'top-right', 'center', 'center-left', 'center-right', 'bottom', 'bottom-left', or 'bottom-right'
104-
swal()->position('top')->message('Good Job','You have successfully Loged In!','info');
104+
swal()->position('top')->message('Good Job','You have successfully logged In!','info');
105105
```
106106

107107
You can chain any of these methods to combine the functionality:

0 commit comments

Comments
 (0)