Encapsulates the jquery messager with frequently used options and provides a central place for user notifications.

Hierarchy-Diagram

UML class diagram of Messager
Legend
icon for a class in the UML class diagram class
icon for an interface in the UML class diagram interface
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method

Hierarchy (view full)

Implements

Constructors

Properties

eventView: Event[] = []
localizer: ILocalizer
max: number
observers: any = null
severity: number

Accessors

Methods

  • The error hook from console. This stores an error in the Event view for later inspection.

    Parameters

    • Rest...params: any[]

    Returns void

  • Normalizes the given parameters for use in the error / warn methods.

    Parameters

    • Rest...params: any[]

    Returns any[]

  • Notifies the Observers about an event of the Observable.

    This is the asynchronous variant of notify as asynchronous observers can be called The sent data is part of the contract between the Observable and its Observers

    Parameters

    • Rest...args: any

    Returns Promise<void>

  • Pushs an Event to the eventView by limiting the total length.

    Parameters

    • item: Event

    Returns void

  • Shows a Panel with some information or hints. Title key and Message key are translated.

    Parameters

    • titleKey: string
    • msgKey: string
    • e: any = null

    Returns void

  • Displays an alert warning box. Provided messages key is translated, so you get a localized message.

    Parameters

    • msgKey: string
    • e: any

    Returns void

  • Subscribes a function as an Observer.

    Supports also first time notification by providing additional arguments. This must be done by overriding this function in the Observable and providing the relevant argument(s).

    Parameters

    • func: any
    • Rest...args: any

    Returns void