Search
BaseForm Class
Remarks See Also
 






The BaseForm class is the base class for all built-in forms.

Namespace: MindFusion.Scheduling
File: BaseForm.js

 Syntax

JavaScript  Copy Code

// class
BaseForm.prototype = {}

 Remarks

You can inherit BaseForm to create your own custom calendar forms.

 Example

The following code extends BaseForm to create a custom form used for appointment entries:

JavaScript  Copy Code

var p = MindFusion.Scheduling;

class CustomForm extends p.BaseForm {

 constructor(calendar, item, type) {
  super(calendar, item);
  this._id = "AppointmentForm";
  this._type = type;
  this.headerText = "New Appointment";

  this.colors = [{ value: 0, text: "white" }, { value: 1, text: "green" }, { value: 2, text: "red" }, { value: 3, text: "violet" }];
 }
....
}

 Inheritance Hierarchy

MindFusion.Scheduling.BaseForm

 See Also