Function
Optional
The key name of the enforcer in the MVC instance (if any). By default, it is inferred from the name of the field. If the field is named somethingEnforcer, the key name will be something.
somethingEnforcer
something
enforcer
Stage-3 field decorator for MVC structure. It reduces code by turning the decorated field into a fetched enforcer.
@tool() protected textEnforcer: TurboEnforcer; Copy
@tool() protected textEnforcer: TurboEnforcer;
Is equivalent to:
protected get textEnforcer(): TurboEnforcer { if (this.mvc instanceof Mvc) return this.mvc.getEnforcer("text"); if (typeof this.getEnforcer === "function") return this.getEnforcer("text");} Copy
protected get textEnforcer(): TurboEnforcer { if (this.mvc instanceof Mvc) return this.mvc.getEnforcer("text"); if (typeof this.getEnforcer === "function") return this.getEnforcer("text");}
The key name of the enforcer in the MVC instance (if any). By default, it is inferred from the name of the field. If the field is named
somethingEnforcer, the key name will besomething.