gradum-kit - v0.1.0
    Preparing search index...

    Type Alias MvcProperties<ViewType, ModelType, EmitterType>

    The set of MVC pieces attached to an element. Pass one to defaultProperties or to GradumSelector.setMvc to declare which classes fill each role; read the assembled set back from GradumSelector.mvc. Every role is optional, and each accepts either a ready-made instance or a constructor to build one from.

    type MvcProperties<
        ViewType extends GradumView = GradumView<any, any>,
        ModelType extends GradumModel = GradumModel,
        EmitterType extends GradumEmitter = GradumEmitter,
    > = {
        view?: MvcInstanceOrConstructor<ViewType, GradumViewProperties>;
        model?:
            | ModelType
            | (new (data?: any, dataBlocksType?: "map" | "array") => ModelType);
        emitter?: MvcInstanceOrConstructor<EmitterType, ModelType>;
        operators?: MvcManyInstancesOrConstructors<
            GradumOperator,
            GradumOperatorProperties,
        >;
        handlers?: MvcManyInstancesOrConstructors<GradumHandler, ModelType>;
        interactors?: MvcManyInstancesOrConstructors<
            GradumInteractor,
            GradumInteractorProperties,
        >;
        tools?: MvcManyInstancesOrConstructors<GradumTool, GradumToolProperties>;
        constrainers?: MvcManyInstancesOrConstructors<
            GradumConstrainer,
            GradumConstrainerProperties,
        >;
    }

    Type Parameters

    Index
    view?: MvcInstanceOrConstructor<ViewType, GradumViewProperties>

    The view (or view constructor) to attach.

    model?:
        | ModelType
        | (new (data?: any, dataBlocksType?: "map" | "array") => ModelType)

    The model (or model constructor) to attach.

    emitter?: MvcInstanceOrConstructor<EmitterType, ModelType>

    The emitter (or emitter constructor) to attach. If not defined, a default GradumEmitter will be created.

    operators?: MvcManyInstancesOrConstructors<
        GradumOperator,
        GradumOperatorProperties,
    >

    The operator, constructor of operator, or array of the latter, to attach.

    handlers?: MvcManyInstancesOrConstructors<GradumHandler, ModelType>

    The handler, constructor of handler, or array of the latter, to attach.

    interactors?: MvcManyInstancesOrConstructors<
        GradumInteractor,
        GradumInteractorProperties,
    >

    The interactor, constructor of interactor, or array of the latter, to attach.

    tools?: MvcManyInstancesOrConstructors<GradumTool, GradumToolProperties>

    The tool, constructor of tool, or array of the latter, to attach.

    constrainers?: MvcManyInstancesOrConstructors<
        GradumConstrainer,
        GradumConstrainerProperties,
    >

    The constrainer, constructor of constrainer, or array of the latter, to attach.