Search
BaseForm.headerText Property
See Also
 






Gets or sets the text which is displayed in the header of the form.

Namespace: MindFusion.Scheduling
File: BaseForm.js

 Syntax

JavaScript  Copy Code

get headerText() {}

 Property Value

A String that renders as a header for the BaseForm.

 Example

The following code extends BaseForm to create a custom form used for appointment entries. The code uses the headerText property to specify guiding text or the header of the new form:

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" }];
 }
…………..
}

 See Also