0.1.84 • Published 2 years ago

stmodal v0.1.84

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

stMODAL

Custom alert, confirm and popup

1) use "npm i stmodal" in your project. 2) import "stmodal" at top of your index.

import "stmodel"

alert

when you use "alert('hello world')" you can see the result. Also you can pass a series of setting using "alert('hello world', array settings)" to customize the alert

// example:
alert('hello world')

confirm

for confirm you can use "confirm('are you sure?', your function)" where you can pass a function as result of confirmation. Also you can pass a series of setting using "confirm('are you sure?', array settings, your function)" to customize the confirm.

// example:
confirm( 'are you sure?', alert('You press confirm') )

popup

not impenent at moment

0.1.82

2 years ago

0.1.83

2 years ago

0.1.84

2 years ago

0.1.8

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago