Comments (7)
Ooh and I had a problem with the non minified versions on the js and css files. Js gave an error and the css was only half working.
from js-snackbar.
Also the minified versions don't have the positioning
from js-snackbar.
Hi,
I guess there is a reason why Michael use textContent instead of innerHTML.
Anyway if you want html content just do this in _Create function :
// _Message.textContent = _Options.message;
_Message.innerHTML = _Options.message;
from js-snackbar.
Ooh and I had a problem with the non minified versions on the js and css files. Js gave an error and the css was only half working.
Also the minified versions don't have the positioning
Yes, @RoyvanEmpel my apologies, I had a clean install of VS Code and forgot to include automatic minification, so those slipped my mind. Please try the new updated min files, they should have the updated position code now (and the error should be resolved)
from js-snackbar.
I guess there is a reason why Michael use textContent instead of innerHTML.
I mainly wanted to maintain a consistent size/shape to the Snackbar, but if there's genuine interest then I can modify the code easily as you've pointed out
Anyway if you want html content just do this in _Create function :
// _Message.textContent = _Options.message;
_Message.innerHTML = _Options.message;
from js-snackbar.
I was trying out the js-snackbar library and was wondering if it is possible to add the use of html tags in my message. So that way I could use something like
PHP Error:
Biep boep something wrong
This has been added to the v1.2 release (you can pull that from the releases tab or from master
)
from js-snackbar.
Great! thanks you :)
from js-snackbar.
Related Issues (20)
- CVE-2021-23364 (Medium) detected in browserslist-4.16.1.tgz - autoclosed HOT 4
- CVE-2021-23364 (Medium) detected in browserslist-4.16.1.tgz - autoclosed HOT 4
- CVE-2021-23364 (Medium) detected in browserslist-4.16.1.tgz HOT 2
- CVE-2021-23343 (High) detected in path-parse-1.0.6.tgz - autoclosed HOT 4
- CVE-2021-23343 (High) detected in path-parse-1.0.6.tgz - autoclosed HOT 4
- CVE-2021-23343 (High) detected in path-parse-1.0.6.tgz - autoclosed HOT 4
- CVE-2021-23343 (High) detected in path-parse-1.0.6.tgz
- CVE-2021-23368 (Medium) detected in postcss-8.2.4.tgz, postcss-7.0.35.tgz - autoclosed HOT 4
- CVE-2021-29060 (Medium) detected in color-string-1.5.4.tgz - autoclosed HOT 1
- CVE-2021-29060 (Medium) detected in color-string-1.5.4.tgz
- CVE-2021-23368 (Medium) detected in postcss-8.2.4.tgz, postcss-7.0.35.tgz - autoclosed HOT 3
- CVE-2021-23368 (Medium) detected in postcss-8.2.4.tgz, postcss-7.0.35.tgz - autoclosed HOT 3
- CVE-2021-23368 (Medium) detected in postcss-8.2.4.tgz, postcss-7.0.35.tgz
- Dispose with JS HOT 2
- Typo in README HOT 1
- Not visable when scrolling HOT 2
- Possition action doesnt work HOT 1
- Unable to bind Snackbar to container when using query selector string HOT 2
- Uncaught Syntax Error! Help? HOT 1
- Closing Action with Custom Funcion and Uncaught DOMException: Node.removeChild
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 js-snackbar.