forked from MapComplete/MapComplete
This commit is contained in:
parent
3a2addbddc
commit
d5430891bf
22 changed files with 580 additions and 507 deletions
|
|
@ -289,6 +289,11 @@ export interface QuestionableTagRenderingConfigJson extends TagRenderingConfigJs
|
|||
* group: expert
|
||||
*/
|
||||
postfixDistinguished?: string
|
||||
/**
|
||||
* Extra arguments to configure the input element
|
||||
* group: hidden
|
||||
*/
|
||||
helperArgs: any
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ export default class TagRenderingConfig {
|
|||
readonly inline: boolean
|
||||
readonly default?: string
|
||||
readonly postfixDistinguished?: string
|
||||
readonly args?: any
|
||||
}
|
||||
|
||||
public readonly multiAnswer: boolean
|
||||
|
|
@ -203,6 +204,7 @@ export default class TagRenderingConfig {
|
|||
inline: json.freeform.inline ?? false,
|
||||
default: json.freeform.default,
|
||||
postfixDistinguished: json.freeform.postfixDistinguished?.trim(),
|
||||
args: json.freeform.helperArgs
|
||||
}
|
||||
if (json.freeform["extraTags"] !== undefined) {
|
||||
throw `Freeform.extraTags is defined. This should probably be 'freeform.addExtraTag' (at ${context})`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue