ReadonlypropertiesStaticdefaultReadonlyinitializedThe properties passed on to children created through feedforward, letting a parent seed its descendants with shared defaults.
The dropdown's underlying hidden input. Might be undefined.
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.getValue.
Inferred from properties.getSecondaryValue.
Inferred from the entries the accessors receive.
Optionalproperties: This["prototype"]["properties"] & GradumSelectProperties<Properties to set on the new selection.
The created selection, typed as the class this was called on.
Instantiate a selection, reading its value and entry types back off the properties — so
the types come from getValue/getSecondaryValue rather than needing a cast. Narrows
GradumBaseElement.create, which cannot see generics declared on a subclass.
Protected StaticcustomProtected Function
customCreate
The selection's configuration.
The created selection.
ProtectedgetProtectedclearProtectedgetFunction
selectByIndex
The index of the entry to select.
Optionalpreprocess: (index: number, entriesCount: number, zero?: number) => number = trim
Applied to the
index before use. Defaults to trim, which clamps it into range; pass mod to wrap around instead.
Itself, allowing for method chaining.
Function
destroy
Itself, allowing for method chaining.
ProtectedenableProtectedinitializeProtectedsetupFunction
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.
GradumSelect
Description
Base class for creating a selection menu