turbodombuilder - v0.9.5
    Preparing search index...

    Class TurboView<ElementType, ModelType, EmitterType>

    TurboView

    A base view class for MVC elements, providing structure for initializing and managing UI setup and event listeners. Designed to be devoid of logic and only handle direct UI changes.

    Type Parameters

    • ElementType extends object = object

      The type of the element attached to the view.

    • ModelType extends TurboModel = TurboModel

      The model type used in this view.

    • EmitterType extends TurboEmitter = TurboEmitter

      The emitter type used in this view.

    Index

    Constructors

    Properties

    element: ElementType

    The main component this view is attached to.

    model?: ModelType

    The model instance this view is bound to.

    emitter?: EmitterType

    The emitter instance used for event communication.

    Methods

    • initialize

      Returns void

      Initializes the view by setting up change callbacks, UI elements, layout, and event listeners.

    • Protected

      setupChangedCallbacks

      Returns void

      Setup method for initializing data/model change listeners and associated UI logic.

    • Protected

      setupUIElements

      Returns void

      Setup method for initializing and storing sub-elements of the UI.

    • Protected

      setupUILayout

      Returns void

      Setup method for creating the layout structure and injecting sub-elements into the DOM tree.

    • Protected

      setupUIListeners

      Returns void

      Setup method for defining DOM and input event listeners.