Search
BaseForm.drawContent Method
See Also
 






Renders the form content.

Namespace: MindFusion.Scheduling
File: BaseForm.js

 Syntax

JavaScript  Copy Code

function drawContent ()

 Remarks

Override this method in a derived class to render custom form content.

 Example

The following code uses the drawContent method to add a text area to a custom form. The custom form is represented by a class that extends BaseForm:

JavaScript  Copy Code

drawContent() {
  super.drawContent();
  var content = this.getContent();

  // 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