toastifier
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "toastifier", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Light and Simple Multi-Framework Toaster", | ||
@@ -5,0 +5,0 @@ "main": "script.js", |
@@ -30,3 +30,3 @@ ## Installation | ||
## Documentation | ||
## Documentation | ||
@@ -37,8 +37,8 @@ Check this to get you started! | ||
| -------------- | -------------- | ------------------------------------------ | | ||
| `type` | `String` | Toast Type | | ||
| `animation` | `String` | Animation Category | | ||
| `duration` | `Number` | Duration for Animation . | | ||
| `type` | `String` | Toast Type | | ||
| `animation` | `String` | Animation Category | | ||
| `duration` | `Number` | Duration for Animation . | | ||
| `position` | `String` | Toast position on window. | | ||
| `onhoverPause` | `Boolean` | pasue toast on hover. | | ||
| `showIcon` | `String` | Show default SVG icons on toast | | ||
| `showIcon` | `Boolean` | Show default SVG icons on toast | | ||
| `onClick` | `Function` | Function to trriger events. | | ||
@@ -49,3 +49,3 @@ | `styleClass` | `Class Object` | Object for Style Class. | | ||
| `border` | `String` | Border, by default based on toast type | | ||
<br /> | ||
@@ -55,9 +55,9 @@ | ||
| Name | Values | Default | | ||
| -------------- | ---------------------------------------------------------------------------- | ------------ | | ||
| `type` | `error, success, warn, info` | `success` | | ||
| `animation` | `flip, bounce, fade, zoom` | `bounce` | | ||
| `position` | `top-left, top-center, top-right, bottom-left, bottom-center, bottom-right,` | `top-center` | | ||
| `onhoverPause` | `true/false` | `false` | | ||
| `showIcon` | `true/false` | `false` | | ||
| Name | Values | Default | | ||
| -------------- | ---------------------------------------------------------------------------- | ---------- | | ||
| `type` | `error, success, warn, info` |`success` | | ||
| `animation` | `flip, bounce, fade, zoom` |`bounce` | | ||
| `position` | `top-left, top-center, top-right, bottom-left, bottom-center, bottom-right,` |`top-center`| | ||
| `onhoverPause` | `true/false` |`false` | | ||
| `showIcon` | `true/false` |`false` | | ||
@@ -85,3 +85,2 @@ <br /> | ||
onhoverPause: true, | ||
shoeIcon:'true', | ||
onClick: toastfunction, | ||
@@ -88,0 +87,0 @@ styleClass: { |
@@ -30,3 +30,3 @@ function toastifier (msg, options = {}) { | ||
}; | ||
if (options.showIcon==="false") { | ||
if (options.showIcon===false) { | ||
icon.style.display="none"; | ||
@@ -33,0 +33,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
21666
105