What's the difference between sweetalert and sweetalert2?
What's the difference between sweetalert and sweetalert2?
https://stackoverflow.com/questions/26838965/sweet-alert-display-html-code-in-text/27842854#27842854
The SweetAlert repo seems to be unmaintained. There's a bunch of Pull Requests without any replies, the last merged pull request was on Nov 9, 2014.
I created SweetAlert2 with HTML support in modal and some other options for customization modal window - width, padding, Esc button behavior, etc.
Swal.fire({
title: "<i>Title</i>",
html: "Testno sporocilo za objekt: <b>test</b>",
confirmButtonText: "V <u>redu</u>",
});
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
Based on a little research it appears the owner of sweetalert V1 is contributing to sweetalert2, so I'd say it's official. I was just worried about going with a version ripped off from the original creator.. now I'm it's settled.
(t4t5 under contributors https://github.com/sweetalert2/sweetalert2/graphs/contributors)
@NickWoodhams, well, to be fair, no he's not [contributing]. Not directly. Those contributions come from the first repo, because @limonte did the thing correctly and did not reset the Git history when he cloned the previous repo.
But it's not stolen. That's open source, the license was compatible and we did point to the old repo, completely abandoned at the time.
Nowadays the codebase is completely different and has nothing in common with the original one, except for the icons maybe. It's an original work.
So, feel free to use whatever version you like and please be assured that we're not thieves :)
相关文章
- poj 1027 Ignatius and the Princess II全排列
- Django报错:提交表单报错---RuntimeError: You called this URL via POST, but the URL doesn’t end in a slash and you have APPEND_SLASH set.
- Performs the analysis process on a text and return the tokens breakdown of the text
- Java实现 蓝桥杯 算法训练 Remember the A La Mode(暴力)
- [Typescript] Tips: Create your own 'objectKeys' function using generics and the 'keyof' operator
- [CSS 3] Use the Border-Radius CSS Property to Define Horizontal and Vertical Radius
- [Angular 9] Improved Dependency Injection with the new providedIn scopes 'any' and 'platform'
- [Javascript] AbortController to cancel the fetch request
- [Angular] Show a loading indicator in Angular using *ngIf/else, the as keyword and the async pipe
- [CSS] Specify grid columns, rows, and areas at once with the grid-template shorthand
- [Immutable.js] Differences between the Immutable.js Map() and List()
- [Node.js]30. Level 6: Listen 'Question' from client, and then Answer the Question
- [HTML 5 Performance] Optimize Cross-browser Images with webp and the 'picture' Element
- [RxJS 6] The Catch and Rethrow RxJs Error Handling Strategy and the finalize Operator
- [Grid Layout] Use auto-fill and auto-fit if the number of repeated grid tracks is not to be def
- [AngularJS] Exploring the Angular 1.5 .component() method
- 解决The type or namespace name 'XXXX' does not exist in the namespace 'XXXXXXXXX' 的错误
- content of maven-uilib-pom - the eslint and jslint are configured here
- Unexpected XML declaration. The XML declaration must be the first node in the document and no white
- 【Codeforces 1091D】New Year and the Permutation Concatenation
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The big deffrence between ($(du * )) and $(du *)
- 【DataStructure】The description of Java Collections Framework
- 论文解读《On the Prediction Instability of Graph Neural Networks》
- Ignatius and the Princess III --undo
- kvm迁移镜像启动报错(the CPU is incompatible with host CPU: Host CPU does not provide required features: fma)