forked from MapComplete/MapComplete
Use arguments
This commit is contained in:
parent
b8b194d04b
commit
a944a26e9c
5 changed files with 27 additions and 6 deletions
|
@ -27,6 +27,9 @@
|
|||
export let feature: Feature
|
||||
export let args: (string | number | boolean)[] = undefined
|
||||
export let state: SpecialVisualizationState
|
||||
export let tags: UIEventSource<Record<string, string>>
|
||||
export let helperArgs: (string | number | boolean)[]
|
||||
export let key: string
|
||||
|
||||
let properties = { feature, args: args ?? [] }
|
||||
</script>
|
||||
|
@ -52,5 +55,5 @@
|
|||
{:else if type === "wikidata"}
|
||||
<ToSvelte construct={() => InputHelpers.constructWikidataHelper(value, properties)} />
|
||||
{:else if type === "nsi"}
|
||||
<NameSuggestionIndexInput {value} {feature} />
|
||||
<NameSuggestionIndexInput {value} {feature} {tags} {helperArgs} {key} />
|
||||
{/if}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue