Constructor
# <ExerciseGenerator />
Extends
- Component
Members
# state
ExerciseGenerator component state
Properties:
Name | Type | Description |
---|---|---|
startMeasureValue |
string | The entered start measure |
endMeasureValue |
string | The entered end measure |
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.
# measureValueChangedHandler(event)
Updates the measure value in state
Parameters:
Name | Type | Description |
---|---|---|
event |
The event that triggered this function to be called |
# render()
Renders the ExerciseGenerator component