Search
BaseForm.createTextArea Method
See Also
 






Creates a text area with the specified options.

Namespace: MindFusion.Scheduling
File: BaseForm.js

 Syntax

JavaScript  Copy Code

function createTextArea (options)

 Parameters

options

Object. Object, containing data for the new control.

 Return Value

Object. The newly created text area.

 Remarks

The options parameter should match the following pattern: { id: id, text: text, events: {"name": handler} }

 Example

The following code adds a new text area to a custom form. The custom form is represented by a class that extends BaseForm:

JavaScript  Copy Code

drawContent() {
  super.drawContent();

// create a text-area for the item subject
  var control = this.createTextArea({ id: "subject", initValue: this.item.subject, events: { keydown: this._areaKeyDown } });
  control.element.style.width = "200px";
  this.addControl(control);
 ..............
}

 See Also