The BaseForm class is the base class for all built-in forms.
Namespace: MindFusion.Scheduling
File: BaseForm.js
JavaScript Copy Code |
---|
// class |
You can inherit BaseForm to create your own custom calendar forms.
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) { this.colors = [{ value: 0, text: "white" }, { value: 1, text: "green" }, { value: 2, text: "red" }, { value: 3, text: "violet" }]; |
MindFusion.Scheduling.BaseForm