ReadonlypropertiesStaticdefaultA pattern the value must match once editing ends. Stricter than GradumInput.inputRegexCheck, so partial input is allowed mid-typing but not left behind.
ReadonlyonReadonlyonReadonlyonProtectedlabelReadonlychildrenReadonlyonReadonlyonReadonlyonReadonlytagReadonlyinitializedThe properties passed on to children created through feedforward, letting a parent seed its descendants with shared defaults.
ReadonlydataThe input's text exactly as it appears in the element, with no parsing. Assigning checks it against GradumInput.blurRegexCheck and reverts to the last valid text if it fails.
StaticcreateFunction
create
The class create was called on. The constraint
matches the base signature; the return type still narrows to this class.
Inferred from properties.inputTag.
Inferred from the properties' value type.
Optionalproperties: This["prototype"]["properties"] & Omit<Properties to set on the new input.
The created input, typed as the class this was called on.
Instantiate an input, reading InputTag and ValueType back off the properties — so
GradumInput.create({inputTag: "textarea"}) is typed as a textarea input without a cast. Narrows
GradumElement.create, which cannot see generics declared on a subclass.
Protected StaticcustomProtected Function
customCreate
The input's configuration.
The created input.
ProtectedsetupProtectedsetupProtectedprocessProtectedsetupProtectedsetupFunction
initialize
Initializes the element. It sets up the UI by calling the methods setupUIElements,
setupUILayout, setupUIListeners, and setupChangedCallbacks (in this order, if they are defined).
This function is called automatically in .setProperties() and when instantiating an
element via element(). It is called only once per element (as it checks with the reflected initialized flag).
Function
feedforward
Optionalproperties: FeedforwardProperties
Properties to feed forward. Defaults to
defaultFeedforwardProperties.
Itself, allowing for method chaining.
Function
clone
Optionaloptions: CloneElementOptions
What to carry over to the copy.
The cloned element.
Static
Description
Default properties assigned to a new input: an
<input>element, wired to the interactor that keeps its value and size in step with what the user types.