Optionaloptions: {OptionalcancelText?: stringOptionalclasses?: string[]OptionalcloseText?: stringOptionalconfirmText?: stringOptionaldialogText?: stringOptionalheaderText?: stringOptionalhideCancel?: booleanOptionalhideExit?: booleanOptionalinstance?: IH5PContentType<unknown>OptionalskipRestoreFocus?: booleanOptionaltheme?: booleanRemove event listener If no listener is specified, all listeners will be removed
Event type
Optionallistener: (event: TData) => void
Event listener
Add new event listener
Event type. If the event type is xAPI, the listener's event parameter will be of type XAPIEvent. Any dispatched XAPIEvent will trigger the xAPI event.
Event listener
OptionalthisArg: ThisType<unknown>
Optionally specify the listener's this value
Add new event listener that will be fired only once
Event type. If the event type is xAPI, the listener's event parameter will be of type XAPIEvent. Any dispatched XAPIEvent will trigger the xAPI event.
Event listener
OptionalthisArg: ThisType<unknown>
Optionally specify the listener's this value
Dispatch event
Event object or event type as string
OptionaleventData: TData
Custom event data (used when event type as string is used as first argument)
Optionalextras: { bubbles?: boolean; external?: boolean }Set parent of confirmation dialog
The confirmation dialog (chainable)
The ConfirmationDialog HTML element
The element that had focus before the ConfirmationDialog was opened
Mark the activity as started. Triggers the attempted xAPI event the
first time it's called for an instance.
OptionaloffsetTop: numberHelper function to create xAPI completed events.
Use triggerXAPIScored instead
Helper function to create scored xAPI events
Will be set as the 'raw' value of the score object
Will be set as the "max" value of the score object
Short form of adl verb
Is this a statement from a completed activity?
Is this a statement from an activity that was done successfully?
Whether to use the new theme (true) or the old design (false)