forked from MapComplete/MapComplete
Add documentation on input types
This commit is contained in:
parent
8774b887d8
commit
4d7325aa4e
1 changed files with 63 additions and 0 deletions
63
Docs/SpecialInputElements
Normal file
63
Docs/SpecialInputElements
Normal file
|
@ -0,0 +1,63 @@
|
|||
# Available types for text fields
|
||||
|
||||
The listed types here trigger a special input element. Use them in `tagrendering.freeform.type` of your tagrendering to activate them
|
||||
|
||||
## string
|
||||
|
||||
A basic string
|
||||
|
||||
## text
|
||||
|
||||
A string, but allows input of longer strings more comfortably (a text area)
|
||||
|
||||
## date
|
||||
|
||||
A date
|
||||
|
||||
## wikidata
|
||||
|
||||
A wikidata identifier, e.g. Q42
|
||||
|
||||
## int
|
||||
|
||||
A number
|
||||
|
||||
## nat
|
||||
|
||||
A positive number or zero
|
||||
|
||||
## pnat
|
||||
|
||||
A strict positive number
|
||||
|
||||
## direction
|
||||
|
||||
A geographical direction, in degrees. 0° is north, 90° is east, ... Will return a value between 0 (incl) and 360 (excl)
|
||||
|
||||
## 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
|
||||
|
||||
Shows a color picker
|
Loading…
Add table
Add a link
Reference in a new issue