Skip to main content

Data class

📖 Description

The Data class holds the data for an Instance.

info

This class does not expose access to the actual collected values. When you need read or write access to a value, you need to use the appropriate method from the Context instance. This ensures data protection.

🗃️ Fields


🏷️ exportables

Retrieves all exportable values.

Type

Values[]


🏷️ hasSealedValues

Retrieves if there are sealed values collected. These are all the values that are answered by the form respondent. When there are sealed values, the exportables property will contain Values.

Type

boolean

▶️ Methods


🔧 forSlot

Retrieve the values for the supplied slot instance or identifier.

Signature

forSlot(slot: Slot | { slot: Slot } | string): Values | undefined

Parameters

NameTypeOptionalDescription
slotSlot | { slot: Slot } | stringNoSpecifies the slot of the value.

Return value

Returns the Values instance for the slot or undefined if the supplied slot is invalid.