From 4d7325aa4ee5ef486c2c8b27f160a4dc5ccb1026 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 11 May 2021 10:14:33 +0200 Subject: [PATCH] Add documentation on input types --- Docs/SpecialInputElements | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Docs/SpecialInputElements diff --git a/Docs/SpecialInputElements b/Docs/SpecialInputElements new file mode 100644 index 0000000000..5f807ab478 --- /dev/null +++ b/Docs/SpecialInputElements @@ -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 \ No newline at end of file