• Output an alert message to the user interface. Alert messages are used to display important information that requires user attention, such as pricing changes or special offers.

    Parameters

    • message: any

      The alert message to display to the user

    • Optional location: string

      Where to show the message, one of MessageArea; shown everywhere when omitted

    Returns void

    Example

    alert("Special pricing applied: 20% discount for bulk orders");
    alert("Price updated based on selected attributes");

    Example

    alert("Bulk discount applied", Constants.MessageArea.Basket);
    

Generated using TypeDoc