|
endHour='20:00' |
|
const startElement: HTMLInputElement = args.element.querySelector('#StartTime') as HTMLInputElement;
if (!startElement.classList.contains('e-datetimepicker')) {
new DateTimePicker({ value: new Date(startElement.value) || new Date(), locale: 'de' }, startElement);
}
const endElement: HTMLInputElement = args.element.querySelector('#EndTime') as HTMLInputElement;
if (!endElement.classList.contains('e-datetimepicker')) {
new DateTimePicker({ value: new Date(endElement.value) || new Date(), locale: 'de' }, endElement);
} |
|
public onActionBegin(args: ActionEventArgs): void {
const obj: any = args.data instanceof Array ? args.data[0] : args.data;
if ((args.requestType === 'eventCreate') || args.requestType === 'eventChange') {
if (!this.scheduleObj.isSlotAvailable(obj) || obj.StartTime.getTime() < new Date().getTime()) {
alert('The event is already exist in the same slot');
args.cancel = true;
}
}
}
|
|
<e-views>
<e-view option="Day"></e-view>
<e-view option="TimelineDay"></e-view>
<e-view option="Week"></e-view>
<e-view option="TimelineWeek"></e-view>
<e-view option="WorkWeek"></e-view>
<e-view option="TimelineWorkWeek"></e-view>
<e-view option="Month"></e-view>
<e-view option="TimelineMonth"></e-view>
</e-views> |
|
.e-schedule .e-date-header-wrap .e-header-row:last-child {
display: none !important;
} |
|
public timeScale: TimeScaleModel = {
enable: false
}; |
|
<tr>
<td class="e-textlabel">All day</td>
<td colspan="4">
<input id="IsAllDay" class="e-field" type="text" name="IsAlDay" style="width: 100%"/>
</td>
</tr> |
|
const allDayEle: HTMLInputElement = args.element.querySelector('#IsAllDay') as HTMLInputElement;
if (!allDayEle.classList.contains('e-checkbox')) {
if (this.scheduleObj.currentView === "Month" || this.target.classList.contains('e-header-cells') ||
this.target.classList.contains('e-all-day-cells') || this.target.classList.contains('e-all-day-appointment')) {
new CheckBox({ checked: true, change: this.onCheck }, allDayEle);
}
else {
new CheckBox({ checked: false, change: this.onCheck }, allDayEle);
}
} |
|
public onEventRendered(args: EventRenderedArgs): void {
args.element.style.height = '' + (document.querySelector('.e-work-cells') as any).offsetHeight + 'px';
} |
|
public onEventRendered(args: EventRenderedArgs): void {
args.element.style.height = '' + ((document.querySelector('.e-work-cells') as any).offsetHeight - 5) + 'px';
} |