Resultado de búsqueda
A collection of easy-to-digest code examples for specific tasks in about 30 lines of code or less. Queue with Progress Steps. Bootstrap 5 + custom loader. React example. React Router example. Formik example. Yes/No/Cancel Dialog. Draw Attention / Persistent Dialog. Colored Toasts.
- Crop User Image With Cropperjs
Crop User Image with Cropper.js
- Draw Attention / Persistent Dialog
Draw Attention / Persistent Dialog
- Yes/No/Cancel Dialog
Yes/No/Cancel Dialog
- Login Form
Login Form - GitHub Pages ... Login Form
- Number
input[number] + input[range]
- Bootstrap 4 + Custom Loader
Bootstrap 4 + custom loader
- Sidebars and Drawers
Sidebars and Drawers (Left, Right, Top, Bottom)
- Validation Message with a Custom Icon
Validation Message with a Custom Icon. Validation Message...
- Crop User Image With Cropperjs
icon can be set to the predefined "warning" to show a nice warning icon. By setting buttons (plural) to true, SweetAlert will show a cancel button in addition to the default confirm button.
SweetAlert2 comes with 5 built-in types which will show a corresponding icon animation: warning, error, success, info and question. It can either be put in the array under the key "type" or passed as the third parameter of the function.
SweetAlert comes with 4 built-in icons that you can use: "warning" "error" "success" "info" It can either be added as a configuration under the key icon, or passed as the third string parameter of the swal function (e.g. swal("Title", "Text", "success") ). Example: swal({ icon: "success", });
30 de abr. de 2021 · You can set the image for an icon by using the iconHtml param. Also, if you'd like to remove the default border around the icon, use the customClass param. Here's the example: title: 'Image icon', iconHtml: '<img src="https://picsum.photos/100/100">', customClass: {. icon: 'no-border'.
SweetAlert2 comes with 5 built-in types which will show a corresponding icon animation: warning, error, success, info and question. It can either be put in the array under the key type or passed as the third parameter of the function.