Giter VIP home page Giter VIP logo

Comments (9)

pixelbacon avatar pixelbacon commented on July 24, 2024

Agreed. 5 months for a large feature missing such as HTML, or showConfirmButton... I've used this on a project and really appreciate it, but maybe this should be simplified to relying on SWAL and only tweaks for style.

from bootstrap-sweetalert.

lipis avatar lipis commented on July 24, 2024

I tried to merge the two.. but it's been a while and it's kind very outdated :/

from bootstrap-sweetalert.

pixelbacon avatar pixelbacon commented on July 24, 2024

It happens :)
I'd updated the readme to state that though, specifically the stable features in SA that aren't present here. It's by no means a bad code base you made, it's good. But maybe just let people know there are definitely some differences at this point.

:)

from bootstrap-sweetalert.

rclai avatar rclai commented on July 24, 2024

When are you guys going to merge? I'd like to use html: true soon.

from bootstrap-sweetalert.

pixelbacon avatar pixelbacon commented on July 24, 2024

Not to speak out of turn but your best option might be to use the standard
SWAL and overwrite what you need via CSS.

Or write your own JS to coat tail SWAL.

The danger of this library is that it mimics, not overlays, the original
SWAL code. So it's possible for it to fall behind easily.

Or you can update it and put in a merge request, offer the author a
donation, etc so there's incentive to get it up to date.

On Friday, April 10, 2015, Richard Lai [email protected] wrote:

When are you guys going to merge? I'd like to use html: true soon.


Reply to this email directly or view it on GitHub
#25 (comment)
.

-- Mike Minor
pixelbacon.com

from bootstrap-sweetalert.

rclai avatar rclai commented on July 24, 2024

Okay no problem.

from bootstrap-sweetalert.

lipis avatar lipis commented on July 24, 2024

yes.. I tried to update it.. but failed miserably... I don't have much time at the moment..so anyone who is willing to update would be nice :)

from bootstrap-sweetalert.

migig avatar migig commented on July 24, 2024

For now, this hack works:

swal({                                                 // as usual
  //etc.
  html: allowHtml,
  //etc.
});
if (allowHtml) {
  var txt = $(".sweet-alert p.lead").text();           // get text, which is escaped
  txt = $("<textarea/>").html(txt).text();             // unescape the text
  $(".sweet-alert p.lead").html(txt);                  // put it back in
}

And then you get HTML text. Can do the same for HTML title.

from bootstrap-sweetalert.

alekitto avatar alekitto commented on July 24, 2024

The merge with the main project has been completed. html and showConfirmButton options are now available

from bootstrap-sweetalert.

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.