turbodombuilder - v0.9.48
    Preparing search index...

    Class TurboHandler<ModelType>

    TurboHandler

    The MVC base handler class. It's an extension of the model, and its main job is to provide some utility functions to manipulate some of (or all of) the model's data.

    Type Parameters

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Type Parameters

      • ModelType extends TurboModel<
            any,
            any,
            any,
            "map"
            | "array",
            TurboDataBlock<any, any, any, any, any>,
        > = TurboModel<
            any,
            any,
            any,
            "map"
            | "array",
            TurboDataBlock<any, any, any, any, any>,
        >

        The element's MVC model type.

      Parameters

      Returns TurboHandler<ModelType>

    Properties

    keyName: string

    The key of the handler. Used to retrieve it in the main component. If not set, if the element's class name is MyElement and the handler's class name is MyElementSomethingHandler, the key would default to "something".

    model: ModelType

    The MVC model.

    Methods

    • Protected Function

      setup

      Returns void

      Called in the constructor. Use for setup that should happen at instantiation, before this.initialize() is called.