The type of the object that will be turned into MVC.
The element's view type.
The element's data type.
The element's model type.
The element's emitter type.
The type of the object that will be turned into MVC.
The element's view type.
The element's data type.
The element's model type.
The element's emitter type.
Generation options.
FunctiongetController
The controller's key.
FunctiongetInteractor
The interactor's key.
FunctiongetSubstrate
The substrate's key.
Functiongenerate
The properties to use to generate the MVC structure.
FunctiongetDifference
Optionalproperties: MvcGenerationProperties<ViewType, DataType, ModelType, EmitterType> = {}The configuration to compare against (typically the same shape used by generate).
A partial configuration of constructors describing missing pieces relative to properties.
Compute the structural difference between the current MVC configuration and another configuration description. The comparison is constructor-based (not instance-based):
view, model, emitter), the constructors are compared.controllers, handlers, interactors, tools, substrates),
the result contains constructors that exist in the current MVC but not in the provided
configuration.ProtectedupdateProtected FunctionupdateController
Controller instance to update.
ProtectedupdateProtected FunctionupdateHandler
Handler instance to update.
ProtectedupdateProtected FunctionupdateInteractor
Interactor instance to update.
ProtectedupdateProtectedupdateProtected FunctionupdateSubstrate
Substrate instance to update.
ProtectedlinkProtectedextractProtected FunctionextractClassEssenceName
The constructor to derive the name from.
The type suffix to strip (e.g., "Controller", "Handler", "Tool", "Substrate").
Utility that derives a shorter "essence" key name for an MVC piece from its constructor name.
It strips the element/class name prefix (if any) and the type suffix (e.g., "Controller", "Tool") to
produce a key that reads well in camelCase (e.g., MyElementSnapController -> snap).
This is used to auto-generate keyName values for controllers, handlers, interactors, tools and substrates
when they are not provided explicitly.
Mvc
Description
MVC -- Model-View-Component -- handler. Generates and manages an MVC structure for a certain object.