• Toast

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

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

    Parameters

    • props: IToastProps<HTMLElement>
    • Optional template: string

    Returns IToast

Generated using TypeDoc