<!--Render this tr for as a hidden field for timezone-->
<tr id='timeZoneHiddenField' style='display:none'>
<td colspan="4">
<ejs-dropdownlist id='Timezone' class="e-field" data-name = 'Timezone' name='Timezone' value='true' :dataSource='timeData'></ejs-dropdownlist>
</td>
</tr>
<tr>
<td class="e-textlabel">StartTimeZone</td>
<td colspan="4">
<!--Render the dropdown for StartTimeZone component-->
<ejs-dropdownlist id='StartTimezone' class="e-field" width='400px' data-name = 'StartTimezone' name='StartTimezone' :fields='fields' :dataSource='timezoneData'></ejs-dropdownlist>
</td>
</tr>
<tr>
<td class="e-textlabel">EndTimeZone</td>
<td colspan="4">
<!--Render the dropdown for EndTimeZone component-->
<ejs-dropdownlist id='EndTimezone' class="e-field" width='400px' data-name = 'EndTimezone' name='EndTimezone' :fields='fields' :dataSource='timezoneData'></ejs-dropdownlist>
</td>
</tr> |
onPopupOpen: function(args){
if (args.type === 'Editor') {
// For recurrence working need to add below lines
var recObj = args.element.querySelector('#RecurrenceEditor').ej2_instances[0]
this.$refs.ScheduleObj.ej2Instances.eventWindow.recurrenceEditor = recObj;
}
}
|
onActionBegin: function(args) {
let scheduleObj = this.$refs.ScheduleObj;
if (args.requestType === "eventCreate" || args.requestType === "eventChange") {
let data = (args.requestType === "eventCreate") ? args.data[0]: args.data;
var endDate = new Date(data.StartTime);
endDate.setMinutes(endDate.getMinutes() + 20);
data.EndTime = endDate;
} |