Update Monitoring setup: Add Scale(0-100) to question type dropdown
When editing a question we can select one of multiple question types. Add a new one: Scale Question(0-100)
/ Slider Frage (0-100)
.
What is do be done?
The 'Slider Frage (0-100)' does not need any editing capabilities (besides the question wording). This question type has no options but .min and .max properties fixed to 0 and 100 respectively and a 'rcc-scale' tag, it should look something like this:
{
id: 'A',
type: 'integer',
meaning:'How stressed were you before going to work today?',
translations: {
'en': 'How stressed were you before going to work today?',
'de': 'Wie gestresst waren Sie, bevor Sie heute zur Arbeit gingen?'
},
min: 0,
max: 100,
tags: ['rcc-scale']
},
The 'rcc-scale' tag should trigger the appropriate preview of the question, showing a slider.
Where to start
- Monitoring setup :D
- ScaleQueryWidgetComponent <-- that's the WidgetComponent meant to render questions tagged with 'rcc-scale'
Note
In some screens it says Slider Frage 1-100
, note the '1' (one). That's a typo. The scale is meant to start at 0!
Edited by Andreas Pittrich