Search
BaseForm.type Property
See Also
 






Gets the type of the form.

Namespace: MindFusion.Scheduling
File: BaseForm.js

 Syntax

JavaScript  Copy Code

get type() {}

 Property Value

A String that specifies the type.

 Example

The following code uses the type property to check if this is a new form. The form (this) is represented by a class that extends BaseForm:

JavaScript  Copy Code
// if a new item is created, add it to the schedule.items collection
  if (this.type === "new")
   this.calendar.schedule.items.add(this.item);

 See Also