• Alert

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

    // Create the alert
    let el = document.querySelector("#alert");
    let alert = Components.Alert({
    el: el,
    header: "Demo",
    content: "This is an alert.",
    isDismissible: true,
    type: Components.AlertTypes.Success
    });

    Parameters

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

    Returns IAlert

Generated using TypeDoc