Elegant, responsive, flexible and lightweight notification plugin with no dependencies.

Overview

iziToast

Elegant, responsive, flexible and lightweight notification plugin with no dependencies.

izitoast.marcelodolza.com

capa

Fast Responsive Animated Lightweight Customizable No dependencies Retina
alt text alt text alt text alt text alt text alt text alt text
  • All modern browsers are supported (Tested in Chrome, Firefox, Opera, Safari, IE10+ and Edge).
  • Bugs? create an issue here.


Gulp Tasks

The default build task

gulp

Rerun the build task when a file changes

gulp watch

NPM

npm install izitoast --save

Yarn

yarn add izitoast --save

Bower

bower install izitoast --save

Angular 2 (NPM, Github)

npm install ng2-izitoast --save

Vue 2 (NPM, Github)

npm install vue-izitoast --save
yarn add vue-izitoast

GEM

https://github.com/BadAllOff/iziToast-rails
Comments
  • same position for multiple message

    same position for multiple message

    When I click on success multiple time, it creates multiple messages and appends it on the bottom of last.

    What I want is to replace the first message with the second message.

    Can I do that?

    Does it have any option for it?

    It should replace the old message with the new message in the same position.

    Because when I call an APIs if an error occurred it displays all error appended to each other which looks ugly. izitoast

    Implemented feature request 
    opened by nimatrazmjo 16
  • Two prompt boxes will pop up, and one will not disappear

    Two prompt boxes will pop up, and one will not disappear

    I'm a message trigger, two messages are coming at the same time, and two prompts pop up at the same time, but after a certain amount of time, there's another one that won't automatically close

    bug fixed 
    opened by king-lxt 13
  • Import in Typescript

    Import in Typescript

    Hello,

    Since upgrading to 1.2, I can't find a way to properly import izitoast in a typescript file.

    I would like to be able to use a simple import {IziToast} from 'izitoast';

    but now I get error messages either when transpiling to javascript (izitoast doesn't export IziToast) or at runtime (no method 'success' of undefined) whatever type of import I'm using:

    ** import {IziToast} from 'izitoast'; import * as IziToast from 'izitoast'; import IziToast from 'izitoast'; import IziToast = require('izitoast'); **

    Do you thing there is a correct way to do that that I cannot find or shall I revert back to v1.1.5? Thanks a lot!

    opened by gama410 12
  • iziToast conflicting with iziModal

    iziToast conflicting with iziModal

    I've noticed iziToast title and message were fading out when called. Then I changed the order of css links and it normalized, however iziModal assumed the behavior of iziToast.

    Maybe same class used to both?

    opened by andtankian 12
  • Stop timer programmatically

    Stop timer programmatically

    Hi. Thanks for the excellent work.

    A question. How can I interact with the instance? I need to stop the timer from another element. Is there any method?

    enhancement fixed Implemented 
    opened by pbaldovi 10
  • Wrong timeout

    Wrong timeout

    Dear iziToast devs,

    Firstly, Thank you very much for this awesomeness !

    ( v1.1.5 ) After some time I've noticed that this awesome plugin doesn't show a notification as long as needed. As example after execution of code below it will be shown about 53 seconds, not 60. Is it ok ?

    var value = 60;
    iziToast.error( {
           id: 'type' + type,
           title: 'Error',
           message: 'Wait '+value+' seconds',
           timeout: ( value * 1000 ),
           toastOnce: true
         } );
    

    Best regards, V7

    fixed 
    opened by F8ER 8
  • utf-8 support ?

    utf-8 support ? "InvalidCharacterError: String contains an invalid character"

    Hi Is your code support utf-8 chars like this code ? :

    iziToast.show({
    	title: '...',
    	message: "در حال یافتن",
    	rtl: true
    });
    

    The above code show this error :

    InvalidCharacterError: String contains an invalid character
    
    bug fixed 
    opened by alirezaimi 7
  • Change iconText option to accept raw HTML (so we can use it to inject SVG icons)

    Change iconText option to accept raw HTML (so we can use it to inject SVG icons)

    Hi there,

    First of all, loving the library; so far the only thing that I've not been able to get working is to use my own SVG icons instead of an icon font with this library.

    I got to the point where I am passing these parameters:

            icon: 'icon-placeholder',
            iconText: function () {
              return require(`~/assets/svg/icons/check.svg`)
            },
    

    Sadly this does not work since the iconText login in Izitoast injects a text node rather then just appending the HTML.

    I think it would be a relatively small change, and would make the entire thing a lot more customisable.

    Implemented feature request 
    opened by gerbenqikker 6
  • Button hide no longer works from 1.2 to 1.3

    Button hide no longer works from 1.2 to 1.3

    After update to 1.3, the code to hide the toast after a a yes/no button click no longer works. This error is thrown.

    iziToast.min.js:6 Uncaught TypeError: Cannot read property 'add' of undefined at Object.e.hide (iziToast.min.js:6) at ciscoconsole.min.js:1 at HTMLButtonElement. (iziToast.min.js:6)

    opened by dougroutledge 6
  • Uncaught ReferenceError: iziToast is not defined

    Uncaught ReferenceError: iziToast is not defined

    Hey,

    I have the error Uncaught ReferenceError: iziToast is not defined.

    My Code from example:

    <script> iziToast.show({ title: 'Hey', message: 'What would you like to add?' }); </script>

    Thanks for help!

    opened by ghost 6
  • Fix typescript module export

    Fix typescript module export

    In this PR:

    • Including typings location in package.json for import to work.
    • Moved typins to folder ./types for convention. Ex.: Pic1 and Pic2
    • Adjustments in typings export for correct module import. Ex.: import IziToast, { IziToastPosition, IziToastSettings, IziToastTransitionIn, IziToastTransitionOut } from 'izitoast';

    |Pic1|Pic2| |:-:|:-:| |typing_vue|typing_vue-router|

    opened by arthurvasconcelos 6
  • Is it possible to make a button pressed when the enter key is pressed?

    Is it possible to make a button pressed when the enter key is pressed?

    First of all, thank you for developing such a good plugin.

    We are developing the use of CONFIRM window using iziToast. However, when the Yes or No button is opened, I want the button to be pressed by pressing the Enter key or the space bar without selecting the mouse click.

    How can I implement this feature? We look forward to your help. Thank you.

    opened by faitherme 0
  • progressbar stops for a few seconds

    progressbar stops for a few seconds

    Hallo @ all, izitoast works great but the progress-bar stops for a moment .. sometimes for 2 seconds. it´s not running continuously. any idea for cleaning this ....?

    best regards

    willy kobold

    opened by willykobold 0
  • Update Needed Soon

    Update Needed Soon

    Version 1.4.0 seems to be getting "old" and now Chrome is complaining that:

    A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. In a future version of Chrome, the amount of information available in the User Agent string will be reduced. To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.

    Perhaps without an update iziToast will soon not work?

    opened by AndrewPixel 0
  • Need Support for Svelte Framework

    Need Support for Svelte Framework

    Hello IZI Team, I cannot use sweet iziToast in my Svelte project.

    ✔ service worker (10ms)
    webpack:///./node_modules/izitoast/dist/js/iziToast.js?:22
                    BODY = document.querySelector('body'),
                           ^
    
    ReferenceError: document is not defined
        at eval (webpack:///./node_modules/izitoast/dist/js/iziToast.js?:22:10)
        at eval (webpack:///./node_modules/izitoast/dist/js/iziToast.js?:8:74)
        at eval (webpack:///./node_modules/izitoast/dist/js/iziToast.js?:13:3)
        at Object../node_modules/izitoast/dist/js/iziToast.js (C:\repos\competitive\__sapper__\dev\server\server.js:97:1)
        at __webpack_require__ (C:\repos\competitive\__sapper__\dev\server\server.js:21:30)
        at eval (webpack:///./src/routes/index.svelte?:7:66)
        at Module../src/routes/index.svelte (C:\repos\competitive\__sapper__\dev\server\server.js:349:1)
        at __webpack_require__ (C:\repos\competitive\__sapper__\dev\server\server.js:21:30)
        at eval (webpack:///./src/node_modules/@sapper/internal/manifest-server.mjs?:8:78)
        at Module../src/node_modules/@sapper/internal/manifest-server.mjs (C:\repos\competitive\__sapper__\dev\server\server.js:205:1)
    > Server crashed
    
    opened by ssantanuberaa 1
Releases(v1.4.0)
Owner
Marcelo Dolza
Creative Coder
Marcelo Dolza
⛔️ DEPRECATED - Dependency-free notification library that makes it easy to create alert - success - error - warning - information - confirmation messages as an alternative the standard alert dialog.

DEPRECATED This repository is no longer supported, please consider using alternatives. Dependency-free notification library. Documentation » Hi NOTY i

Nedim Arabacı 6.7k Dec 21, 2022
A simple, modern, browser notification system

humane.js This project was heavily inspired by humanmsg project for jQuery. I really liked the project but I wanted to remove the jQuery dependency, a

Marc Harter 2.1k Dec 10, 2022
Pure JavaScript library for better notification messages

Toastify Toastify is a lightweight, vanilla JS toast notification library. Demo Click here Features Multiple stacked notifications Customizable No blo

Varun A P 1.3k Dec 30, 2022
Growl-style alerts and messages for your app. #hubspot-open-source

Messenger Demo and Usage Docs Show messages in your app. Wrap AJAX requests with progress, success and error messages, and add retry to your failed re

HubSpot 4k Jan 2, 2023
Elegant, responsive, flexible and lightweight modal plugin with jQuery.

iziModal Elegant, responsive, flexible and lightweight modal plugin with jQuery. izimodal.marcelodolza.com Fast Responsive Animated Lightweight Custom

Marcelo Dolza 2.1k Dec 30, 2022
Coloris - A lightweight and elegant JavaScript color picker. Written in vanilla ES6, no dependencies. Accessible.

Coloris A lightweight and elegant JavaScript color picker written in vanilla ES6. Convert any text input field into a color field. View demo Features

Momo Bassit 126 Dec 27, 2022
📱📈An elegant, interactive and flexible charting library for mobile.

中文 README F2 is born for mobile, developed for developers as well as designers. It is Html5 Canvas-based, and is also compatible with Node.js, Weex an

AntV team 7.8k Dec 31, 2022
📱📈An elegant, interactive and flexible charting library for mobile.

F2,一个专注于移动,开箱即用的可视化解决方案,完美支持 H5 环境同时兼容多种环境(node, 小程序,weex)。完备的图形语法理论,满足你的各种可视化需求。专业的移动设计指引为你带来最佳的移动端图表体验。英文 README 在此衷心感谢《The Grammar of Graphics》的作者

AntV team 7.8k Dec 27, 2022
🔔 a clean and simple notification, input, and selection suite for javascript, with no dependencies

notie notie is a clean and simple notification, input, and selection suite for javascript, with no dependencies Live demo: https://jaredreich.com/noti

Jared Reich 6.3k Dec 26, 2022
noUiSlider is a lightweight JavaScript range slider library with full multi-touch support. It fits wonderfully in responsive designs and has no dependencies.

noUiSlider noUiSlider is a lightweight JavaScript range slider. No dependencies All modern browsers and IE > 9 are supported Fully responsive Multi-to

Léon Gersen 5.4k Dec 28, 2022
Lightweight and simple notification library in Vanilla JavaScript.

SimpleNotification SimpleNotification is a library to display simple yet customizable notifications. You can stylize text with a simple syntax, add bu

null 14 Dec 11, 2022
Responsive navigation plugin without library dependencies and with fast touch screen support.

Responsive Nav Responsive navigation plugin without library dependencies and with fast touch screen support. Responsive Nav is a tiny JavaScript plugi

Viljami Salminen 4.1k Dec 29, 2022
Lightweight, robust, elegant syntax highlighting.

Prism Prism is a lightweight, robust, and elegant syntax highlighting library. It's a spin-off project from Dabblet. You can learn more on prismjs.com

Prism.js 10.9k Dec 30, 2022
Responsive Tabs is a jQuery plugin that provides responsive tab functionality.

Responsive Tabs is a jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint. You can use this plugin as a solution for displaying tabs elegantly on desktop, tablet and mobile.

Jelle Kralt 537 Dec 8, 2022
jQuery quick notification plugin. jQuery плагин быстрых уведомлений

Note: English translation by Google Translate Notific About Description: this is a jQuery plugin that helps you display notifications on your site. Li

Webarion 2 Nov 7, 2021
jQuery plugin for a Notification Bar

jquery.peekABar A jQuery plugin for a notification bar with customization options. Important Note We have stopped supporting bower as a package manage

null 59 Dec 11, 2022
A beautiful, responsive, highly customizable and accessible replacement for JavaScript's popup boxes. Zero dependencies.Alerts ,dialogs

AsgarAlert (v1) for JS Install <script defer src="/asgar-alert.js"></script> Examples The most basic message: asgar("Hello world!"); A message signali

Asgar Aliyev 5 Dec 20, 2022
Simple, responsive, modern SVG Charts with zero dependencies

Frappe Charts GitHub-inspired modern, intuitive and responsive charts with zero dependencies Explore Demos » Edit at CodePen » Contents Installation U

Frappe 14.6k Jan 4, 2023
Responsive no-jQuery pure JS/CSS Lightbox for images, no dependencies, 10kb unminified source code, with demo

img-lightbox Responsive no-jQuery pure JS/CSS Lightbox for images, no dependencies, 10kb unminified source code, with demo Demo codepen jsfiddle jsbin

englishextra 12 Jun 13, 2022