Hosanna UI API v1.30.2-next
    Preparing search index...

    Class representing a notification that can be dispatched.

    Type Parameters

    • T = undefined

      The type of the notification data.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructs a new HsNotification.

      Type Parameters

      • T = undefined

      Parameters

      • name: string

        The name of the notification.

      • Optionaldata: T

        The data payload for the notification.

      Returns HsNotification<T>

    Properties

    data: T

    The data payload associated with the notification.

    name: string

    The name of the notification.

    Methods

    • Dispatches this notification using the global notification center.

      Returns void