Git Product home page Git Product logo

izitoast's Introduction

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 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
https://github.com/BadAllOff/iziToast-rails

izitoast's People

Contributors

arthurvasconcelos avatar ayatkyo avatar babruix avatar desko27 avatar emtudo avatar hamedfathi avatar incetarik avatar kasiriveni avatar marcelodolza avatar thexpand avatar zskycat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

izitoast's Issues

Render new lines as <br />

I want to have a message with new lines in it, but they are rendered as whitespace in the toast. Can you render these as
instead. For backwards compatibility, this should have a config setting to enable it (false by default).

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?

Maximum call stack exceeded error when hovered on close button of toast

Uncaught RangeError: Maximum call stack size exceeded
at y (:6:3644)
at Object.updateProgress (:6:3923)
at y (:6:4362)
at Object.updateProgress (:6:3923)
at y (:6:4362)
at Object.updateProgress (:6:3923)
at y (:6:4362)
at Object.updateProgress (:6:3923)
at y (:6:4362)
at Object.updateProgress (:6:3923)

Close on ESC

Is there an option to close on Escape key press?
Thank you

Error when specifying resetOnHover:true property for iziToast.

Hello,

When invoking iziToast with the property resetOnHover:true value, the following error occurs.

iziToast.info({
    title: 'Hello',
    message: 'Welcome!',
  resetOnHover: true
});

Uncaught RangeError: Maximum call stack size exceeded

Same error is reproduced in the following call:

iziToast.info({
    title: 'Hello',
    message: 'Welcome!',
  resetOnHover: true,
  pauseOnHover: false
});

The version used is the release on tag v1.1.3

Any thoughts what could be causing it?

Thank you.

NPM

npm install installs the v1.1.0

Is is possible to set max-with

Hello !
Is it possible to set max-with of the toast?
because sometimes the title and message are couple of words so it make the toast so long....

Is-it possible ?

thanks

FadeOut quando Toast é aberto

Olá, quando chamo um toast, e ele é iniciado, os textos desaparecem.
Se eu removo a classe .slideIn dos textos e deixo a opacidade 1, eles retornam. O CSS do slidein está causando este problema.

.iziToast.slideIn, .iziToast .slideIn { animation: b 1s cubic-bezier(.16,.81,.32,1) both }

Dark theme not working.

We downloaded the current js and css files and tried using the dark theme.
This is the output:

Doesnt look dark to me :P

Wrong zIndex container

The z-index is wrongfully inserted on the container with the class iziToast it should be inserted on the div containing the class iziToast-wrapper

Misalignment when not using any buttons

Situation:
When you show a toast with/without the close (x) button and without any other button or message, the title and icon of the toast are misaligned.

Samples:

  iziToast.warning({
    timeout: 5000,
    title: 'Some message here.',
    position: 'centerTop',
    close: false
  });

  iziToast.success({
    timeout: 5000,
    title: 'Some message here.',
    position: 'centerTop',
    close: true
  });

Using the iziToast.settings default this seems to happen to any kind of toast.

edit: I just noticed, if I include a message in the toast, the misalignment doesn't happen.

Incorrect pattern for buttons object

Example structure for the "Buttons" object.

The sample structure for the "buttons" object does not appear to be in an acceptable pattern for javascript.

Take the example from the official iziToast page.

captura de tela 2017-02-28 as 09 22 04

Incorrect Toast Height

In Chrome 59 on macOS 10.12.5, iziToast 1.1.4 displays toasts incorrectly
screen shot 2017-07-24 at 12 14 07 pm
Despite the CSS rule on .iziToast: max-height: 54px, the height of the element is 71px.

This is because the default box-sizing value is content-box, so the height of the content is being set to 54px regardless of borders and margins which may add height. The most appropriate solution is to set the box-sizing property of .iziToast to border-box.

Result after implementing this change:
screen shot 2017-07-24 at 12 14 15 pm

Settings ignores zIndex

In my settings I set the zIndex to be the highest zIndex in my app

iziToast.settings({ position: 'bottomRight', timeout: 4000, zIndex: 9999999999 });

This gets ignored and I see the div

<div class="iziToast-wrapper iziToast-wrapper-bottomRight" style="z-index: 999999;">...</div>

Balloon ignores custom background color

Balloon takes, the original color for show, success, error... etc.

But if you customize backgroundColor option, the Balloon (little triangle) continue adopting original color.

Request:

  • OPTA: IF exist a custom background Color, take custom color.
  • OPTB: Add "backgroundBalloonColor" option

thank you :)

Conflict with iziModal CSS

When both iziModal and iziToast are used on the same page, the iziModal CSS animations are affected by the iziToast CSS.

Input/Select

Oi marcelo !

ha possibilidade de suportar o izitoast tendo como target um input/select .... etc !

Obrigada

Problem with tracking.js library

when i run the script together with the library,
the timeout of the alerts prolongs almost x4

so timeout: 1000 will result to almost 4seconds

if i use 250 to create a 4 second timeout, the animation on the loading bar doesn't look as fluid as before.

Texto campo mensagem

Quando o iziToast é chamado, o balão não aparece mais o texto.
Ate uns dias estava funcionando, e o codigo nao foi mudado, entao sei que não é erro meu.

Follow semver versioning

Please, consider using semver versioning, to avoid possible misbehavior with package managers. Currently yarn is unable to fetch latest version because of trailing "b".

Methods not working in Vue JS

I am trying to include izitoast in my vue js application. And I have declared the plugin in my dev,base and prod conf file. I have included the imports in my main.js file like this import '../node_modules/izitoast/dist/js/iziToast.min.js'
import '../node_modules/izitoast/dist/css/iziToast.css'. And used izitoast in my mounted hook like $(this.$el).find('.addbtn').iziToast.success({ title: 'OK', message: 'Successfully inserted record!', });. I get error "Cannot read property success of undefined"? Can you help with this?
PS: I have also tried using the import izitoast from 'izitoast' and Vue.use(izitoast)

Toast height changed after second in chorme

whenever i am using toast with this
iziToast.show({    title: 'Hey',    message: 'What would you like to add?'});

when toast open little large height
after second toast height normal as per showing website

please help
please below attachment screenshot

First toast open with little bit large size
1

after second toast goes normal size
2

Bubbles instead of Bubles

Not sure how big of a problem it is, but bubles is misspelt:

var event = new CustomEvent(PLUGIN_NAME+'-close', {detail: settings, bubles: true, cancelable: true});

just noticed because the syntax highlighter complained.

Add extra classes or id on the settings object

Hello, is it possible to pass multiple classes on the settings object? Right now it isn't possible, it'd be cool to be able to add N classes to a specific toast.

Also If we could add an ID to the toast element, that'd be helpful as well.

{
	id: "toast1234", // <- Would be cool
        class: "someClass anotherClass thirdClass", // <- Highly desired
	title: "title",
	message: "some text",
	layout: 2,
	timeout: 8000,
	animateInside: false,
	transitionIn: 'fadeInLeft',
	transitionOut: 'fadeOutRight',
	transitionInMobile: 'fadeInUp',
	transitionOutMobile: 'fadeOutDown',
}

lIcença

Marcelo, não vi nada sobre licenças, sobre qual você irá manter? Vi no site que é free, mas em que condições? Posso usar tranquilamente em meus projetos independente da área de atuação inclusive uso comercial? Abraço.

Allow to re-open toast?

Very nice design and animations! I would love to see an option for a toast to collapse to just it's icon on (auto-)closing, allowing user to re-open it on click. I guess the icon could float on the edge of the screen on larger screens, respecting the existing position parameter (bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter). Some animation could make it clear to the user that the icon came out of the collapsed toast. What do you think?

Remove console.log()

Love the plugin but is there any reason for console.log('closed1'); and console.log('closed2'); being still in the code?

Cores!

Olá Marcelo,

Novamente parabéns!

Novamente porque te dei os parabéns no facebook, e ainda relatei algumas coisas que fiz em outro plugin para adaptar as minhas necessidade. No facebook você diz que aceitaria sugestões, pois bem, vou aqui apresentar algumas que pelo menos eu estou precisando,

1: Poder personalizar as cores do título, tanto de fundo quanto dele mesmo (sem usar class)
2: Poder personalizar as cores da mensagem, tanto do fundo quanto da mensagem (sem usar class)
3: Ter opção para não possibilitar copiar o texto (não me pergunte pq preciso disso, pq eu também não sei rsrsrs). Mas esta aqui acho que não faz muito sentido implementar não, mas talvez vc goste da ideia.

onClose

Mais uma sugestão.

No evento onClose, enviar algo para informar se foi fechado quando tempo finalizou ou quando por ter clicado no botão fechar.

Toast get's full height after second in IE11

Hi, Great tool!

One problem, in IE11 (Chrome works fine) the toast starts small (good) but after a second it takes on the whole height of the screen. I'm using the newest version: 1.1.2
After I click on the button the notification starts on the right bottom like it should.
But than, after a second, it expands over the whole height to the top. (Untill time's up and it dissapeares.)
Anything wrong with the following:

<script src="iziToast.js" type="text/javascript"></script> Test
<script Language="Javascript"> function not() { iziToast.show({ title: 'Hey', message: 'What would you like to add?' }); }; </script>

Best regards,
Simon

compatiable with ie9

when i am using ie9, it show error 'Unable to get undefined or null referenced attributes "add" '

Import not working in TypeScript/CommonJs

I'm using typescript and commonjs module loading to try to bring iziToast (1.0.2-c) into my module/class. The import does not appear to be working and provides undefined at runtime. Weirdly the debugger tooltip of the iziToast variable in the chrome debugger tools suggest that the type has loaded correctly.

There is an iziToast_1 variable available that does provide the correct instance but I have to get to it via hacky and non-CSP compliant eval call.

import Failure from "./failure";
import iziToast from "iziToast";

export class Notify {
    private notifier: any;
    
    public constructor() {
        this.notifier = iziToast;

        if (!this.notifier) {
            // tslint:disable-next-line:no-eval
            this.notifier = eval("iziToast_1");
        }
    }
}

The only other thing I've been able to find is that iziToast_1 gets registered in the map file but does not exist anywhere else in compiled source (via Webpack) or anywhere in the node_modules directory.

I don't think this is to do with minification however because I find the same results on code that isn't minified. I also doubt that this is an issue with webpack as all other modules load fine.

Any idea what is going wrong here?

rtl small fix -> text-align still is left

text-align still is left on message

capture

i fix it with this change :
.iziToast-rtl .iziToast-body p, .iziToast-rtl .iziToast-body strong : { text-align: right; }
and result:
capture

but still i think would be nice if we have an option for font-size

thanks for your great work

Error after close

I get error : Uncaught ReferenceError: isClosed is not defined(…) on

line 403 : settings.onClose.apply(null, [settings, $toast, isClosed]);

On the minified version this error does not show.

Testes on a clean page, no other JS loaded.

izitoast hidden

Hello,
The notification is always hidden behind the elements.
screenshot from 2017-07-27 17-28-06
I wish she was always ahead. Is it possible ?

Thank you!

IE 9 Support??

Hi, i sow you have supported IE 10, but in my organization the client require at least IE 9, Do not iziToast support IE 9 ??.

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.