GUITextarea

new GUITextarea(id, options, guimanager, append)

Creates a new GUITextarea

Parameters

NameTypeDescription
Name
id
Type
string
Description
The id and name element
Name
options
Type
json
Description
Options of element
Name
guimanager
Type
GUIManager
Description
The gui manager
Name
append
Type
bool
Description
is added to the <body>. => True by default (optional)

Options

  • w: width of textarea (in pixel)
  • h: height of textarea (in pixel)
  • x: position left of textarea (in pixel)
  • y: position top of textarea (in pixel)
  • value: value of textarea (string)
  • placeholder: value by default of textfield (string)
  • background: background of textarea (int) => "white" by default (optional)
  • color: color the textarea (string) => "black" by default (optional)
  • zIndex: depth of the element (int) => 1 by default
  • tabindex: Tab order of the field.

Methods

getValue() → void

Get the value element

setValue() → void

Set the value element

setVisible(bool, fade) → void

Set this GUI element to visible or invisible

isVisible() → void

Returns element if is visible or no

dispose() → void

Dispose the GUITextarea, and delete element.