Class UiConfigRendererBase<TUiNode>Abstract

A simple event dispatcher with typed event types, see IEventDispatcher.

Type Parameters

  • TUiNode = any

Hierarchy (view full)

Constructors

Properties

_refreshQueue: Record<TUiRefreshModes, [UiObjectConfig<any, string, any>, number, string][]> = ...
_root?: TUiNode
config: UiObjectConfig<any, "panel", any> = ...

Methods

  • Returns HTMLDivElement

  • Parameters

    Returns void

  • Adds a listener to an event type.

    Parameters

    • type: "preRender" | "postRender" | "preFrame" | "postFrame"

      The type of event to listen to.

    • listener: ((event) => void)

      The function that gets called when the event is fired.

        • (event): void
        • Parameters

          • event: IEvent<"preRender" | "postRender" | "preFrame" | "postFrame">

          Returns void

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

  • Disposes the UI associated with a config, doesn't makes change to the object or its parent.

    Parameters

    • Optional config: UiObjectConfig<any, string, any>
    • performDispose: boolean = true

    Returns void

  • Checks if listener is added to an event type.

    Parameters

    • type: "preRender" | "postRender" | "preFrame" | "postFrame"

      The type of event to listen to.

    • listener: ((event) => void)

      The function that gets called when the event is fired.

        • (event): void
        • Parameters

          • event: IEvent<"preRender" | "postRender" | "preFrame" | "postFrame">

          Returns void

    Returns boolean

  • Parameters

    • deep: boolean = true
    • mode: "immediate" | TUiRefreshModes = "postFrame"
    • delay: number = 0

    Returns void

  • Parameters

    Returns void

  • Removes a listener from an event type.

    Parameters

    • type: "preRender" | "postRender" | "preFrame" | "postFrame"

      The type of the listener that gets removed.

    • listener: ((event) => void)

      The listener function that gets removed.

        • (event): void
        • Parameters

          • event: IEvent<"preRender" | "postRender" | "preFrame" | "postFrame">

          Returns void

    Returns void

  • Parameters

    Returns void