Members
Array.<string>
# constant COMMON_DOM_EVENTS
List of common DOM events to consider for interaction control.
# constant allowAll
Enables all interactions on the specified element.
# constant allowEvents
Restricts the specified element to only process events listed in allowedEvents
.
# 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.
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 |
# preventDefault(event)
Prevents the default action of an event and stops its propagation.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event
|
The event to prevent. |