Comments (6)
You can though you need to use a custom style. The default style is defined here https://github.com/notifyjs/notifyjs/blob/master/dist/notify.js#L585-L625. You'll notice the template has data-notify-text
, in your style - use data-notify-html
instead - see Custom Styling Guide in the docs
from notifyjs.
The problem was that that it escapes message string passed to function. I
just made little fix in JS code and removed that line where it escapes
message string.
On Jun 8, 2016 12:47 PM, "Jaime Pillora" [email protected] wrote:
You can though you need to use a custom style. The default style is
defined here
https://github.com/notifyjs/notifyjs/blob/master/dist/notify.js#L585-L625.
You'll notice the template has data-notify-text, in your style - use
data-notify-html instead - see Custom Styling Guide in the docs
https://notifyjs.com/—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#63 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AE0X9j5QbBfc4t5EOwo3IRSaB6LOFjCqks5qJwA0gaJpZM4INymY
.
from notifyjs.
This is really useful. Much better if there is an option to allow html.
from notifyjs.
from notifyjs.
$.notify.addStyle('happyblue', { html: "<div>☺<span data-notify-text/>☺</div>", classes: { base: { "white-space": "nowrap", "background-color": "lightblue", "padding": "5px" }, superblue: { "color": "white", "background-color": "blue" } } [});
](https://notifyjs.jpillora.com/)
from notifyjs.
Seems related to Issue #130
I created a pull request - seems like an easy addon.
// To be used like:
$.notify("Lorem<br><b>Ipsum</b>", {encode: false});
from notifyjs.
Related Issues (20)
- center is not center on global notify (too much right) HOT 1
- I get it, you like it top right HOT 1
- Illegal constructor 'Notification'
- "Fanboy's Annoyance List" blocks Notify.js HOT 2
- Throwing exception if elem is undefined
- Hiding The Nofify programmably
- HTML Config as option HOT 12
- jquery 3.5.0 HOT 7
- Safari browser issue: undefined is not an object (evaluating 'l.nodeType')
- Element notifications disappear immediately after appearing
- Possibly update readme to include npm install
- oops
- Can't get the minified version of notifyjs HOT 1
- Custom position?
- layout is lost with latest jquery 3.6.0 HOT 3
- notify.js and fancybox clash
- Hide notify.js notification HOT 1
- JQuery Migrate 3.4.0 warnings
- NotifyJs issue with punctuation in different language
- Can we prevent duplicate in notify ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notifyjs.