forked from MapComplete/MapComplete
feat(themes): add questionHint to give extra information about a question
This commit is contained in:
parent
60f3499eb0
commit
d7fe3a056e
5 changed files with 42 additions and 4 deletions
|
@ -85,6 +85,10 @@ export default class TagRenderingQuestion extends Combine {
|
|||
),
|
||||
3
|
||||
)
|
||||
let questionHint = undefined
|
||||
if (configuration.questionhint !== undefined) {
|
||||
questionHint = new SubstitutedTranslation(configuration.questionhint, tags, state)
|
||||
}
|
||||
|
||||
const feedback = new UIEventSource<Translation>(undefined)
|
||||
const inputElement: ReadonlyInputElement<UploadableTag> = new VariableInputElement(
|
||||
|
@ -139,6 +143,7 @@ export default class TagRenderingQuestion extends Combine {
|
|||
}
|
||||
super([
|
||||
question,
|
||||
questionHint,
|
||||
inputElement,
|
||||
new VariableUiElement(
|
||||
feedback.map(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue