Socket
Socket
Sign inDemoInstall

toastifier

Package Overview
Dependencies
0
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.0.8

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc