vfreitas- / growl-alert Goto Github PK
View Code? Open in Web Editor NEWA simple growl like notification system.
License: MIT License
A simple growl like notification system.
License: MIT License
Would like to have both of those :)
Great work for being minimal!
I'll try to make a minimal change and make a PR for the close
method
I think I'll be making a breaking changes. Thought I could just make the closeMessage public and make a growl by doing new growl({ ...opts })
. Works for me that way, but the tests failed and hence introduces breaking changes.
I'll just trigger a click
to close it.
Looked at the growl-alert
source in my node_modules
and saw that the addEventListener has 'click touchstart'
After removing touchstart
from the listener it is now working.
Now when I looked at the src
from the one I forked, I don't see any touchstart
there even after building it. Where did that come from?
This line from docs:
import growl from 'growl-alert'
leads to variable growl
being undefined. I still managed to successfully import growl with this line:
import growl from 'growl-alert/src/index';
I installed growl-alert via npm and I am using Webpack to import it. Maybe something is missing in the configuration of the package?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.