Code Monkey home page Code Monkey logo

Comments (7)

RoyvanEmpel avatar RoyvanEmpel commented on May 29, 2024

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.

RoyvanEmpel avatar RoyvanEmpel commented on May 29, 2024

Also the minified versions don't have the positioning

from js-snackbar.

gewy avatar gewy commented on May 29, 2024

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.

mickelsonmichael avatar mickelsonmichael commented on May 29, 2024

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.

mickelsonmichael avatar mickelsonmichael commented on May 29, 2024

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.

mickelsonmichael avatar mickelsonmichael commented on May 29, 2024

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.

RoyvanEmpel avatar RoyvanEmpel commented on May 29, 2024

Great! thanks you :)

from js-snackbar.

Related Issues (20)

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.