aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authoradrido <robots_only_adrido@gmx.com>2017-10-09 06:57:18 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-10-09 08:11:03 +0200
commite6e5fa3bf8853f149fdef16b39af3981097176a4 (patch)
tree968de4d77eabd89ac62534975888c7d859d83857 /doc
parent9b8fa99fe30728c1fcfa73cdf74211841bdae9fb (diff)
downloadminetest-e6e5fa3bf8853f149fdef16b39af3981097176a4.tar.gz
minetest-e6e5fa3bf8853f149fdef16b39af3981097176a4.tar.bz2
minetest-e6e5fa3bf8853f149fdef16b39af3981097176a4.zip
Formspec: textarea with scrollbar improvements
Increase scrollrate depending on fontsize Scroll on mousewheel Allow scrolling and marking text on non writable textareas Update lua api about readonly mode Show scrollbar if text overflows
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index c29abdf9c..703e81436 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1918,9 +1918,10 @@ examples.
* if <close_on_enter> is false, pressing enter in the field will submit the form but not close it
* defaults to true when not specified (ie: no tag for a field)
-#### `textarea[<X>,<Y>;<W>,<H>;<name>;<label>;<default>;<scrollbar>]`
+#### `textarea[<X>,<Y>;<W>,<H>;<name>;<label>;<default>]`
* Same as fields above, but with multi-line input
-* if <scrollbar> is true an auto vertical scrollbar is added
+* if the text overflows a vertical scrollbar is added
+* if the name is empty the textarea is readonly. The label is not displayed then
#### `label[<X>,<Y>;<label>]`
* `x` and `y` work as per field