Skip to content

Adds possibility of specifying HTMLElement or jQuery object as target#166

Open
Hissvard wants to merge 1 commit intomarcelodolza:masterfrom
Hissvard:master
Open

Adds possibility of specifying HTMLElement or jQuery object as target#166
Hissvard wants to merge 1 commit intomarcelodolza:masterfrom
Hissvard:master

Conversation

@Hissvard
Copy link
Copy Markdown

@Hissvard Hissvard commented Feb 2, 2019

One thing I felt missing from the lib was a way, like the title says, to specify an HTMLElement or jQuery object as a target - in a project, I found myself having to create unique ids via uuids in order to target the toasts to a big number of dynamic elements.

This functionality would avoid that.

I took the liberty of also adding the support for jQuery objects - I've seen other libraries do it too as an extra service, but if you believe it might give the wrong idea that the library depends on jQuery to users it might be better to remove it.

One thing: You'll notice I only uploaded the updated dist/css/iziToast.min.css and dist/css/iziToast.min.js files - I ran the gulp command but only the minified versions were built. I've sadly barely used gulp so I'd like to know what I did wrong so I can fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant