turbodombuilder - v0.9.66
    Preparing search index...

    Class TurboBaseElement

    TurboBaseElement

    TurboHeadlessElement class, similar to TurboElement but without extending HTMLElement.

    The element's view type, if initializing MVC.

    The element's data type, if initializing MVC.

    The element's model type, if initializing MVC.

    The element's emitter type, if initializing MVC.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    selected: boolean

    Whether the element is selected or not.

    properties: object
    initialized: boolean

    Whether the element was initialized already or not.

    defaultFeedforwardProperties: TurboElementProperties
    defaultProperties: object = {}

    Default properties assigned to a new instance.

    Methods

    • Function

      destroy

      Returns this

      Itself, allowing for method chaining.

      Destroys the node by removing it from the document and removing all its bound listeners.

    • Function

      initialize

      Returns void

      Initializes the element. It sets up the UI by calling the methods setupUIElements, setupUILayout, setupUIListeners, and setupChangedCallbacks (in this order, if they are defined). This function is called automatically in .setProperties() and when instantiating an element via element(). It is called only once per element (as it checks with the reflected initialized flag).

    • Parameters

      • properties: object

      Returns object