mapcomplete/Docs/SpecialInputElements.md

67 lines
1 KiB
Markdown
Raw Normal View History

2021-05-11 10:14:33 +02:00
# Available types for text fields
2021-09-18 02:29:47 +02:00
The listed types here trigger a special input element. Use them in `tagrendering.freeform.type` of your tagrendering to activate them
2021-05-11 10:14:33 +02:00
## string
A basic string
## text
A string, but allows input of longer strings more comfortably (a text area)
## date
A date
2021-07-24 02:42:37 +02:00
## direction
A geographical direction, in degrees. 0° is north, 90° is east, ... Will return a value between 0 (incl) and 360 (excl)
## length
2021-09-18 02:29:47 +02:00
A geographical length in meters (rounded at two points). Will give an extra minimap with a measurement tool. Arguments: [ zoomlevel, preferredBackgroundMapType (comma separated) ], e.g. `["21", "map,photo"]
2021-07-24 02:42:37 +02:00
2021-05-11 10:14:33 +02:00
## wikidata
A wikidata identifier, e.g. Q42
## int
A number
## nat
A positive number or zero
## pnat
A strict positive number
## float
A decimal
## pfloat
A positive decimal (incl zero)
## email
An email adress
## url
A url
## phone
A phone number
## opening_hours
Has extra elements to easily input when a POI is opened
## color
2021-06-16 17:21:37 +02:00
Shows a color picker Generated from ValidatedTextField.ts