StaticdefaultReadonlypropertiesReadonlyonReadonlyonReadonlyonReadonlytagReadonlyinitializedThe properties passed on to children created through feedforward, letting a parent seed its descendants with shared defaults.
ReadonlydataAlias of translation, so code that positions elements through a
position field (e.g. constrainer solvers) works on the wrapper as-is.
ProtectedsetupProtectedupdateStaticcreateFunction
create
The class create was called on.
Inferred from properties.view.
Inferred from properties.data.
Inferred from properties.model.
Inferred from properties.emitter.
Optionalproperties: This["prototype"]["properties"] & ElementTagDefinition<"div"> & Omit<Properties to set on the new instance.
The created instance, typed as the class this was called on.
Instantiate this class with the given properties. Defaults declared by every class in the
inheritance chain are applied first, nearest ancestor last, so a subclass' defaultProperties win over
its parent's. The return type follows the class it is called on, and the MVC type parameters are read
back off the properties — passing model: MyModel types .model as MyModel without a cast.
Note: the callee is read through this["prototype"] rather than InstanceType<this>, because the
latter instantiates a generic class' parameters with their constraints instead of their defaults,
which is what forced casts at call sites.
Protected StaticcustomProtected Function
Properties to set on the new instance, defaults already merged in.
The created instance.
The construction step behind create. Override it to change how instances of a class
are built — to route through a factory, or to wrap the instance — while keeping the default-merging that
create performs.
ProtectedsetupProtectedsetupProtectedsetupFunction
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.
GradumMovable
Description
Positioning wrapper that places arbitrary content via pure CSS transforms. Set translation (alias position) and rotation to move/rotate the wrapper without touching the content's own fields — useful for previews (feedforwards), ghosts, overlays, or any element that must be positioned independently of how its content renders itself.
Example