Components

ExerciseGenerator

<ExerciseGenerator />

Renders the ExerciseGenerator component

Extends

  • Component

Members

# state

ExerciseGenerator component state
Properties:
Name Type Description
startMeasureValue string The entered start measure
endMeasureValue string The entered end measure

View Source components/Music/MusicPerformanceHeader/ExerciseGenerator/ExerciseGenerator.js, line 36

Methods

# static mapDispatchToProps(dispatch) → {object}

Passes certain Redux actions to the ExerciseGenerator component as props. This function is used only by the react-redux connect function.
Parameters:
Name Type Description
dispatch function The react-redux dispatch function

View Source components/Music/MusicPerformanceHeader/ExerciseGenerator/ExerciseGenerator.js, line 195

Redux actions used in the ExerciseGenerator component
object

# generateExerciseSubmitHandler()

Submits the exercise generation request. Shows the exercise.

View Source components/Music/MusicPerformanceHeader/ExerciseGenerator/ExerciseGenerator.js, line 46

# measureValueChangedHandler(event)

Updates the measure value in state
Parameters:
Name Type Description
event The event that triggered this function to be called

View Source components/Music/MusicPerformanceHeader/ExerciseGenerator/ExerciseGenerator.js, line 64