Element
Represents a single content item within an Event, such as a poll, quiz, or informational card.
This class provides access to the element's state, its custom fields, and methods for interaction (e.g., answering a poll). To receive live updates for an element, attach a listener using add.
Properties
The list of possible answer options for a votable element. Returns null if the element is not votable.
Indicates if the voting results for this element can currently be shown to the user.
The specific content type of a custom element, as defined in the App Spec.
The index of the correct answer option. Returns null if the correct option has not been revealed.
Custom field data for this element, localised to the current project locale. Keys and value types are defined in the project's App Spec.
true if the user has answered this element, false otherwise.
true if the correct option has been revealed, false otherwise.
The maximum number of options a user can select when answering.
The maximum number of votes a user can assign to a single option.
The maximum number of votes a user can distribute among options.
The minimum number of options a user must select when answering.
The timestamp (in seconds) when the element was published.
Whether the platform counts votes on this element only from validated users, or null when the element is not a poll.
The mode that determines when results should be shown.
The current state of the element, e.g., OPENED or CLOSED.
The user's previously submitted answer for this element. Returns null if the user has not answered.