Gets the type of the form.
Namespace: MindFusion.Scheduling
File: BaseForm.js
JavaScript Copy Code |
---|
get type() {} |
A String that specifies the type.
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); |