summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-03 00:20:26 +0200
committerWuzzy <almikes@aol.com>2016-08-03 00:20:26 +0200
commit7d4eef0da3c40af121c847434f5c99465ccf2cc1 (patch)
treed27caa7cae6db9f4392ad13e9f4ae6ba36a470c4 /API.md
parentb6e1f461c85cd8be767b53e6d06ddfab179548b8 (diff)
Add text template for build_formspec param
Diffstat (limited to 'API.md')
-rw-r--r--API.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/API.md b/API.md
index 08220b7..e14f039 100644
--- a/API.md
+++ b/API.md
@@ -53,6 +53,14 @@ data.
only parameter (has the data type of the entry data) and must
return a formspec which is inserted in the Entry tab.
+#### Predefined values `build_formspec`
+For `build_formspec` you can either define your own function or use one
+of the following predefined functions:
+
+* `doc.entry_templates.text`: Expects entry data to be a string.
+ It will be inserted directly into the entry. Use “`\n`” to start a
+ new line.
+
#### Return value
Always `nil`.