Global

Members

Array.<string>

# constant COMMON_DOM_EVENTS

List of common DOM events to consider for interaction control.

View Source guides/utils.js, line 5

# constant allowAll

Enables all interactions on the specified element.

View Source guides/utils.js, line 77

# constant allowEvents

Restricts the specified element to only process events listed in allowedEvents.

View Source guides/utils.js, line 86

# constant beforeShowPromise

This function will be called before show a step. Step will be shown after promise is resolve. It waits element of step to be visible on the page.

View Source guides/utils.js, line 25

Methods

# _configureInteractions(allowedEvents, interactable, elementSelector, services)

Configures an element interactability, by consuming events and preventing them from propagating. This allows to keep scrolling, while disallowing interaction with other elements (such as clicking buttons).

Parameters:
Name Type Description
allowedEvents Array.<string>

List of event types to allow.

interactable

true to make the element interactable, false to make it non interactable

elementSelector

the elementSelector

services

The services object

View Source guides/utils.js, line 55

# preventDefault(event)

Prevents the default action of an event and stops its propagation.

Parameters:
Name Type Description
event Event

The event to prevent.

View Source guides/utils.js, line 92