custom-card-helpers
    Preparing search index...

    Function fireEvent

    • Dispatches a custom event with an optional detail value.

      Type Parameters

      • HassEvent extends keyof HASSDomEvents

      Parameters

      • node: Window | HTMLElement
      • type: HassEvent

        Name of event type.

      • Optionaldetail: HASSDomEvents[HassEvent]

        Detail value containing event-specific payload.

      • Optionaloptions: { bubbles?: boolean; cancelable?: boolean; composed?: boolean }

        Object specifying options. These may include: bubbles (boolean, defaults to true), cancelable (boolean, defaults to false), and node on which to fire the event (HTMLElement, defaults to this).

      Returns Event

      The new event that was fired.