Class: exports

exports(currentFlow, waitingFlow, runFlow, VIDEO)

A class responsible for generating flow buttons and handling their click events. It dynamically creates buttons for each available flow (excluding the current one), and attaches event listeners to handle flow changes when the buttons are clicked.

Constructor

new exports(currentFlow, waitingFlow, runFlow, VIDEO)

Creates an instance of FlowButtonGenerator.
Parameters:
Name Type Description
currentFlow string The name of the current flow.
waitingFlow boolean A flag indicating whether the flow is waiting to be changed.
runFlow function The function that is triggered to run a new flow.
VIDEO Object The object containing video configurations for different flows.
Source: