extensions

GUITextarea


##new GUITextarea(id, options, guimanager, append) Creates a new GUITextarea

####Parameters Name | Type | Description ---|---|--- id | string | The id and name element options | json | Options of element guimanager | GUIManager | The gui manager

append | bool | 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.