Search
BaseForm.closeForm Method
See Also
 






Closes the form.

Namespace: MindFusion.Scheduling
File: BaseForm.js

 Syntax

JavaScript  Copy Code

function closeForm ([formId])

 Parameters

formId
Optional.

String. The Id of the form to be closed.

 Example

The following code uses the ButtonClick event handler of the save button to close the form and repaint the calendar. The custom form (this) is represented by a class that extends BaseForm:

JavaScript  Copy Code

onSaveButtonClick(e) {

  .....................

  // close the form
  this.closeForm();

  // repaint the calendar
  this.calendar.repaint(true);
}

 See Also