Module: alfresco/forms/controls/TextArea

alfresco/forms/controls/TextArea

Author:
  • Dave Draper
License:
Source:

Members

__oldValue :string

This is used as a temporary buffer variable to keep track of changes to the old value.
Type:
  • string
Default Value:
  • null
Source:

_oldValue :string

This will be set to the last known value of the text box before the current keyup event.
Type:
  • string
Default Value:
  • null
Source:

cols :string

The number of columns to initially display.
Type:
  • string
Default Value:
  • "50"
Source:

cssRequirements :Array

An array of the CSS files to use with this widget.
Type:
  • Array
Source:

rows :string

The number of rows to initially display.
Type:
  • string
Default Value:
  • "5"
Source:

Methods

createFormControl()

Source:

getWidgetConfig()

Source:

setupChangeEvents()

Overrides the default change events to use blur events on the text box. This is done so that we can validate on every single keypress. However, we need to keep track of old values as this information is not readily available from the text box itself.
Source: