textarea
Module(s): vncanvas-base, vncanvas-form
Description: Creates a HTML form textarea element with corresponding label.
- Note: Use only on a 'form', not a 'cform'
- Instantiating form elements without using "form" is not recommended.
texarea, {param} |
Creates a textarea. Parameters are given as {param:value, param:value, ...} |
| Parameter | Attributes and Description |
|---|---|
|
name:"textarea_label"
|
This sets the label and id of the textarea.
|
|
bind:"variable"
|
The corresponding variable to bind the
textarea to. Changing the value of the textarea updates
the bound variable. "variable" can be a config or user variable.
|
|
placeholder:"placeholder_text_to_display"
|
Optional
The text to display if the textarea is empty.
|
|
tip:"tool_tip_to_display"
|
Optional
The tooltip to display when mouse hovers
over its label.
|
The following textarea is bound to a variable named "actorDescription".
chapter = [
...
textarea, {name:"Enter Description",
bind:"actorDescription",
placeholder:"Enter description here",
tip:"Enter a description for the actor."},
...
];