The element's MVC model type.
The element's MVC model type.
Optionalmodel: ModelType
The model to bind. Omit it to let the MVC wiring bind one on registration.
Create a handler. Handlers are normally constructed without arguments — the MVC wiring binds GradumHandler.model when the handler is registered on its model.
GradumHandler
Description
Holds model-level logic that would otherwise crowd the model itself. A handler sees only
this.model— no element and no view — so use it for computations and edits over the model's data, and reach for a GradumOperator when the DOM is involved. Register one with the@handlerdecorator.