The type of the reifier's states.
The object type this reifier will be applied to.
The type of the reifier's states.
The object type this reifier will be applied to.
The configuration properties.
Protected Static ReadonlyfieldsProtected Static ReadonlyknownProtected Static ReadonlychainableProtected ReadonlytimeProtected ReadonlyattachedProtected ReadonlyattachedThe properties to be assigned to the objects. It could take:
{key: value} pairs.{state: {key: value} pairs or an interpolation function that would return a record of {key: value} pairs}.{key: value} pairs based on the state value.
The interpolation function would take as arguments:state: State: the state being applied to the object(s). Only passed to the callback function if it is
defined for the whole field (and not for a specific state).index: number: the index of the object in the applied list.total: number: the total number of objects in the applied list.object: ClassType: the object itself.The styles to be assigned to the objects (only if they are eligible elements). It could take:
{CSS property: value} pairs.{state: {CSS property: value} pairs or an interpolation function that would return a record of {key: value} pairs}.{key: value} pairs based on the state value.
The interpolation function would take as arguments:state: State: the state being applied to the object(s). Only passed to the callback function if it is
defined for the whole field (and not for a specific state).index: number: the index of the object in the applied list.total: number: the total number of objects in the applied list.object: ClassType: the object itself.The classes to be assigned to the objects (only if they are eligible elements). It could take:
{state: space-separated class string, array of classes, or an interpolation function that would return any of the latter}.state: State: the state being applied to the object(s). Only passed to the callback function if it is
defined for the whole field (and not for a specific state).index: number: the index of the object in the applied list.total: number: the total number of objects in the applied list.object: ClassType: the object itself.The object that should replace (in the DOM as well if eligible) the attached objects. It could take:
{state: object to be replaced with, or an interpolation function that would return an object to be replaced with}.state: State: the state being applied to the object(s). Only passed to the callback function if it is
defined for the whole field (and not for a specific state).index: number: the index of the object in the applied list.total: number: the total number of objects in the applied list.object: ClassType: the object itself.Function
attach
The object to attach.
OptionalonSwitch: ReifectOnSwitchCallback<State, ClassType>
Optional callback fired when the reifier is applied to the object. The callback takes as parameters:
state: State: The state being applied to the object.index: number: the index of the object in the applied list.total: number: the total number of objects in the applied list.object: ClassType: the object itself.Optionalindex: number
Optional index to specify the position at which to insert the object in the reifier's attached list.
ProtectedattachProtected Function
attachObject
The object to attach
OptionalonSwitch: ReifectOnSwitchCallback<State, ClassType>
Optional callback fired when the reifier is applied to the object. The callback takes as parameters:
state: State: The state being applied to the object.index: number: the index of the object in the applied list.total: number: the total number of objects in the applied list.object: ClassType: the object itself.Optionalindex: number
Optional index to specify the position at which to insert the object in the reifier's attached list.
ProtecteddetachFunction
getData
The object to find the data of.
null if was not found.Function
getObject
The data entry to get the corresponding object of.
The corresponding object, or null if was garbage collected.
ProtectedparseFunction
getObjectEnabledState
The object to get the state of.
Optionalobjects: ClassType | ClassType[]Optionaloptions: ReifectAppliedOptions<State, ClassType>Function
unapply
Optionalobjects: ClassType | ClassType[]
The objects to clear. Defaults to every attached object.
Optionaloptions: ReifectAppliedOptions<State, ClassType>
Options controlling reach and recomputation.
Itself, allowing for method chaining.
Function
reloadFor
The element to apply the string to.
Itself for method chaining.
ProtectedapplyProtectedparseProtectedfilterProtected Function
filterEnabledObjects
The object's tracked state.
Whether the reifect applies to this object.
ProtectedprocessProtected Function
processRawProperties
The object to resolve values for.
Optionaloverride: StatefulReifectCoreProperties<State, ClassType>
Values to resolve instead of the reifect's own.
ProtectednormalizeProtectednormalize
StatefulReifect
Description
A class to manage and apply dynamic state-based properties, styles, classes, and transitions to a set of objects.