Alert

Hierarchy

Properties

close: (() => void)

Type declaration

    • (): void
    • Closes an alert by removing it from the DOM.

      Returns void

el: HTMLElement

The component HTML element

props: IAlertProps<HTMLElement>

The component properties

setText: ((alertText?) => void)

Type declaration

    • (alertText?): void
    • Updates the alert text.

      Parameters

      • Optional alertText: string

      Returns void

setType: ((alertType) => void)

Type declaration

    • (alertType): void
    • Updates the alert type.

      Parameters

      • alertType: number

      Returns void

Methods

  • Internal method to configure the parent element.

    Returns HTMLElement

  • Hides the component.

    Returns void

  • Shows the component.

    Returns void

Generated using TypeDoc