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