About 22 results
Open links in new tab
  1. SweetAlert2 Recipe Gallery - Code Examples for Specific Tasks

    SweetAlert2 Recipe Gallery - Code Examples for Specific TasksRecipe Gallery A collection of easy-to-digest code examples for specific tasks in about 30 lines of code or less. Queue with Progress Steps …

  2. Yes/No/Cancel Dialog - GitHub Pages

    if (result. isConfirmed) { Swal. fire('Saved!', '', 'success') } else if (result. isDenied) { Swal. fire('Changes are not saved', '', 'info') } }) Run

  3. Login Form - GitHub Pages

    In the function defined for this propertty we are checking if either the user name or the password are empty, and if one of them is, we use Swal.showValidationMessage () to show an error message on …

  4. Colored Toasts - sweetalert2.github.io

    36 import Swal from 'sweetalert2' import './styles.css' const Toast = Swal. mixin({ toast: true, position: 'center', iconColor: 'white',

  5. Sidebars and Drawers - GitHub Pages

    import Swal from 'sweetalert2' ;(async () => { // LEFT SIDEBAR await Swal. fire({ title: 'Left sidebar 👋', position: 'top-start', showClass: {

  6. SweetAlert2 + Laravel

    You can now run Swal::fire () anywhere in your Laravel application (controllers, middleware, etc.) to show a SweetAlert2 alert: use SweetAlert2 \ Laravel \ Swal;

  7. input [number] + input [range] - GitHub Pages

    const inputNumber = Swal. getPopup()!. querySelector('#range-value') as HTMLInputElement // remove default output Swal. getPopup()!. querySelector('output')!. style. display = 'none' inputRange. style. …

  8. Draw Attention / Persistent Dialog - GitHub Pages

    18 import Swal from 'sweetalert2' import 'animate.css' Swal. fire({ title: 'I will shake when you click outside!', allowOutsideClick: () => { const popup = Swal. getPopup() as HTMLElement

  9. Bootstrap 5 + custom loader - GitHub Pages

    import Swal from 'sweetalert2' import './styles.css' $('#myModal'). modal() $('.trigger-swal'). on('click', function () { Swal. fire({ title: 'SweetAlert2 + Bootstrap 5', input: 'text',

  10. Validation Message with a Custom Icon - GitHub Pages

    16 import Swal from 'sweetalert2' import './styles.css' Swal. fire({ title: 'Enter your name', input: 'text', customClass: {