WebSharper.SweetAlert

SweetAlert2 bindings for F# — with WebSharper

Source

${status}

Basics

Popups, button sets, input fields and the three-argument Fire overload.

Toasts, timers and loaders

A mixin instance, the timer API and an asynchronous preConfirm that drives the loader.

${timerInfo}

Layout, themes and validation

The theme, draggable, grow, progressSteps and validation options.

Reading and mutating the live popup

Swal.Update, Swal.Close and the DOM getters.

${apiInfo}

Declarative templates

Swal.BindClickHandler turns any element with a data-swal-template attribute into a popup trigger.

Lifecycle events

Swal.On, Swal.Once and Swal.Off subscribe to the popup lifecycle.

${eventLog}

sweetalert2 ${version} — built with WebSharper and bundled by esbuild.