Toast

less than 1 minute read

References

TypeScript

import { Components } from "gd-sprest-bs";

// Create the toast
let el = document.querySelector("#toast");
let spinner = Components.Toast({
    el: el,
    headerText: "Header",
    body: "This is the body of the toast.",
    mutedText: "2 seconds ago",
    options: { autohide: false }
});

Code Playground