jqwidgets-framework
Version:
jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.
797 lines (682 loc) • 31 kB
text/typescript
/*
jQWidgets v22.0.0 (2025-Jan)
Copyright (c) 2011-2025 jQWidgets.
License: https://jqwidgets.com/license/
*/
/* eslint-disable */
/// <reference path="jqwidgets.d.ts" />
import '../jqwidgets/jqxcore.js';
import '../jqwidgets/modules/jqxscheduler.js';
import { Component, Input, Output, EventEmitter, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
declare let JQXLite: any;
export class jqxSchedulerComponent implements OnChanges
{
attrAppointmentOpacity: number;
attrAppointmentsMinHeight: number;
attrAppointmentDataFields: jqwidgets.SchedulerAppointmentDataFields;
attrAppointmentTooltips: boolean;
attrColumnsHeight: number;
attrContextMenu: boolean;
attrContextMenuOpen: (menu: jqwidgets.SchedulerContextMenuOpen['menu'], appointment: jqwidgets.SchedulerContextMenuOpen['appointment'], event: jqwidgets.SchedulerContextMenuOpen['event']) => void;
attrContextMenuClose: (menu: jqwidgets.SchedulerContextMenuClose['menu'], appointment: jqwidgets.SchedulerContextMenuClose['appointment'], event: jqwidgets.SchedulerContextMenuClose['event']) => void;
attrContextMenuItemClick: (menu: jqwidgets.SchedulerContextMenuItemClick['menu'], appointment: jqwidgets.SchedulerContextMenuItemClick['appointment'], event: jqwidgets.SchedulerContextMenuItemClick['event']) => boolean;
attrContextMenuCreate: (menu: jqwidgets.SchedulerContextMenuCreate['menu'], settings: jqwidgets.SchedulerContextMenuCreate['settings']) => void;
attrChangedAppointments: Array<jqwidgets.SchedulerChangedAppointments>;
attrDisabled: boolean;
attrDate: any;
attrDayNameFormat: string;
attrEnableHover: boolean;
attrEditDialog: boolean;
attrEditDialogDateTimeFormatString: string;
attrEditDialogDateFormatString: string;
attrEditDialogOpen: (dialog?: jqwidgets.SchedulerEditDialogOpen['dialog'], fields?: jqwidgets.SchedulerEditDialogOpen['fields'], editAppointment?: jqwidgets.SchedulerEditDialogOpen['editAppointment']) => void;
attrEditDialogCreate: (dialog?: jqwidgets.SchedulerEditDialogCreate['dialog'], fields?: jqwidgets.SchedulerEditDialogCreate['fields'], editAppointment?: jqwidgets.SchedulerEditDialogCreate['editAppointment']) => void;
attrEditDialogKeyDown: (dialog?: jqwidgets.SchedulerEditDialogKeyDown['dialog'], fields?: jqwidgets.SchedulerEditDialogKeyDown['fields'], editAppointment?: jqwidgets.SchedulerEditDialogKeyDown['editAppointment'], event?: jqwidgets.SchedulerEditDialogKeyDown['event']) => boolean;
attrEditDialogClose: (dialog?: jqwidgets.SchedulerEditDialogClose['dialog'], fields?: jqwidgets.SchedulerEditDialogClose['fields'], editAppointment?: jqwidgets.SchedulerEditDialogClose['editAppointment']) => void;
attrExportSettings: jqwidgets.SchedulerExportSettings;
attrLegendPosition: string;
attrLegendHeight: number;
attrLocalization: any;
attrMin: any;
attrMax: any;
attrReady: () => void;
attrRenderAppointment: (data: jqwidgets.SchedulerRenderAppointment['data']) => any;
attrRendering: () => void;
attrRendered: () => void;
attrRtl: boolean;
attrResources: jqwidgets.SchedulerResources;
attrRowsHeight: number;
attrShowToolbar: boolean;
attrShowLegend: boolean;
attrShowCurrent: boolean;
attrShowCurrentAppointment: boolean;
attrScrollBarSize: number;
attrSource: any;
attrStatuses: jqwidgets.SchedulerStatuses;
attrTouchRowsHeight: number;
attrTheme: string;
attrTouchAppointmentsMinHeight: number;
attrTouchScrollBarSize: number;
attrTimeZone: string;
attrTouchDayNameFormat: string;
attrToolBarRangeFormat: string;
attrToolBarRangeFormatAbbr: string;
attrToolbarHeight: number;
attrViews: Array<any>;
attrView: string;
attrWidth: string | number;
attrHeight: string | number;
autoCreate: boolean = true;
properties: string[] = ['appointmentOpacity','appointmentsMinHeight','appointmentDataFields','appointmentTooltips','columnsHeight','contextMenu','contextMenuOpen','contextMenuClose','contextMenuItemClick','contextMenuCreate','changedAppointments','disabled','date','dayNameFormat','enableHover','editDialog','editDialogDateTimeFormatString','editDialogDateFormatString','editDialogOpen','editDialogCreate','editDialogKeyDown','editDialogClose','exportSettings','height','legendPosition','legendHeight','localization','min','max','ready','renderAppointment','rendering','rendered','rtl','resources','rowsHeight','showToolbar','showLegend','showCurrent','showCurrentAppointment','scrollBarSize','source','statuses','touchRowsHeight','theme','touchAppointmentsMinHeight','touchScrollBarSize','timeZone','touchDayNameFormat','toolBarRangeFormat','toolBarRangeFormatAbbr','toolbarHeight','views','view','width'];
host: any;
elementRef: ElementRef;
widgetObject: jqwidgets.jqxScheduler;
constructor(containerElement: ElementRef) {
this.elementRef = containerElement;
}
ngOnInit() {
if (this.autoCreate) {
this.createComponent();
}
};
ngOnChanges(changes: SimpleChanges) {
if (this.host) {
for (let i = 0; i < this.properties.length; i++) {
let attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
let areEqual: boolean = false;
if (this[attrName] !== undefined) {
if (typeof this[attrName] === 'object') {
if (this[attrName] instanceof Array) {
areEqual = this.arraysEqual(this[attrName], this.host.jqxScheduler(this.properties[i]));
}
if (areEqual) {
return false;
}
this.host.jqxScheduler(this.properties[i], this[attrName]);
continue;
}
if (this[attrName] !== this.host.jqxScheduler(this.properties[i])) {
this.host.jqxScheduler(this.properties[i], this[attrName]);
}
}
}
}
}
arraysEqual(attrValue: any, hostValue: any): boolean {
if ((attrValue && !hostValue) || (!attrValue && hostValue)) {
return false;
}
if (attrValue.length != hostValue.length) {
return false;
}
for (let i = 0; i < attrValue.length; i++) {
if (attrValue[i] !== hostValue[i]) {
return false;
}
}
return true;
}
manageAttributes(): any {
let options = {};
for (let i = 0; i < this.properties.length; i++) {
let attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
if (this[attrName] !== undefined) {
options[this.properties[i]] = this[attrName];
}
}
return options;
}
moveClasses(parentEl: HTMLElement, childEl: HTMLElement): void {
let classes: any = parentEl.classList;
if (classes.length > 0) {
childEl.classList.add(...classes);
}
parentEl.className = '';
}
moveStyles(parentEl: HTMLElement, childEl: HTMLElement): void {
let style = parentEl.style.cssText;
childEl.style.cssText = style
parentEl.style.cssText = '';
}
createComponent(options?: any): void {
if (this.host) {
return;
}
if (options) {
JQXLite.extend(options, this.manageAttributes());
}
else {
options = this.manageAttributes();
}
this.host = JQXLite(this.elementRef.nativeElement.firstChild);
this.moveClasses(this.elementRef.nativeElement, this.host[0]);
this.moveStyles(this.elementRef.nativeElement, this.host[0]);
this.__wireEvents__();
this.widgetObject = jqwidgets.createInstance(this.host, 'jqxScheduler', options);
}
createWidget(options?: any): void {
this.createComponent(options);
}
__updateRect__() : void {
if(this.host) this.host.css({ width: this.attrWidth, height: this.attrHeight });
}
setOptions(options: any) : void {
this.host.jqxScheduler('setOptions', options);
}
// jqxSchedulerComponent properties
appointmentOpacity(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('appointmentOpacity', arg);
} else {
return this.host.jqxScheduler('appointmentOpacity');
}
}
appointmentsMinHeight(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('appointmentsMinHeight', arg);
} else {
return this.host.jqxScheduler('appointmentsMinHeight');
}
}
appointmentDataFields(arg?: jqwidgets.SchedulerAppointmentDataFields): jqwidgets.SchedulerAppointmentDataFields {
if (arg !== undefined) {
this.host.jqxScheduler('appointmentDataFields', arg);
} else {
return this.host.jqxScheduler('appointmentDataFields');
}
}
appointmentTooltips(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('appointmentTooltips', arg);
} else {
return this.host.jqxScheduler('appointmentTooltips');
}
}
columnsHeight(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('columnsHeight', arg);
} else {
return this.host.jqxScheduler('columnsHeight');
}
}
contextMenu(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('contextMenu', arg);
} else {
return this.host.jqxScheduler('contextMenu');
}
}
contextMenuOpen(arg?: (menu: jqwidgets.SchedulerContextMenuOpen['menu'], appointment: jqwidgets.SchedulerContextMenuOpen['appointment'], event: jqwidgets.SchedulerContextMenuOpen['event']) => void): (menu: jqwidgets.SchedulerContextMenuOpen['menu'], appointment: jqwidgets.SchedulerContextMenuOpen['appointment'], event: jqwidgets.SchedulerContextMenuOpen['event']) => void {
if (arg !== undefined) {
this.host.jqxScheduler('contextMenuOpen', arg);
} else {
return this.host.jqxScheduler('contextMenuOpen');
}
}
contextMenuClose(arg?: (menu: jqwidgets.SchedulerContextMenuClose['menu'], appointment: jqwidgets.SchedulerContextMenuClose['appointment'], event: jqwidgets.SchedulerContextMenuClose['event']) => void): (menu: jqwidgets.SchedulerContextMenuClose['menu'], appointment: jqwidgets.SchedulerContextMenuClose['appointment'], event: jqwidgets.SchedulerContextMenuClose['event']) => void {
if (arg !== undefined) {
this.host.jqxScheduler('contextMenuClose', arg);
} else {
return this.host.jqxScheduler('contextMenuClose');
}
}
contextMenuItemClick(arg?: (menu: jqwidgets.SchedulerContextMenuItemClick['menu'], appointment: jqwidgets.SchedulerContextMenuItemClick['appointment'], event: jqwidgets.SchedulerContextMenuItemClick['event']) => boolean): (menu: jqwidgets.SchedulerContextMenuItemClick['menu'], appointment: jqwidgets.SchedulerContextMenuItemClick['appointment'], event: jqwidgets.SchedulerContextMenuItemClick['event']) => boolean {
if (arg !== undefined) {
this.host.jqxScheduler('contextMenuItemClick', arg);
} else {
return this.host.jqxScheduler('contextMenuItemClick');
}
}
contextMenuCreate(arg?: (menu: jqwidgets.SchedulerContextMenuCreate['menu'], settings: jqwidgets.SchedulerContextMenuCreate['settings']) => void): (menu: jqwidgets.SchedulerContextMenuCreate['menu'], settings: jqwidgets.SchedulerContextMenuCreate['settings']) => void {
if (arg !== undefined) {
this.host.jqxScheduler('contextMenuCreate', arg);
} else {
return this.host.jqxScheduler('contextMenuCreate');
}
}
changedAppointments(arg?: Array<jqwidgets.SchedulerChangedAppointments>): Array<jqwidgets.SchedulerChangedAppointments> {
if (arg !== undefined) {
this.host.jqxScheduler('changedAppointments', arg);
} else {
return this.host.jqxScheduler('changedAppointments');
}
}
disabled(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('disabled', arg);
} else {
return this.host.jqxScheduler('disabled');
}
}
date(arg?: any): any {
if (arg !== undefined) {
this.host.jqxScheduler('date', arg);
} else {
return this.host.jqxScheduler('date');
}
}
dayNameFormat(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('dayNameFormat', arg);
} else {
return this.host.jqxScheduler('dayNameFormat');
}
}
enableHover(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('enableHover', arg);
} else {
return this.host.jqxScheduler('enableHover');
}
}
editDialog(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('editDialog', arg);
} else {
return this.host.jqxScheduler('editDialog');
}
}
editDialogDateTimeFormatString(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('editDialogDateTimeFormatString', arg);
} else {
return this.host.jqxScheduler('editDialogDateTimeFormatString');
}
}
editDialogDateFormatString(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('editDialogDateFormatString', arg);
} else {
return this.host.jqxScheduler('editDialogDateFormatString');
}
}
editDialogOpen(arg?: (dialog?: jqwidgets.SchedulerEditDialogOpen['dialog'], fields?: jqwidgets.SchedulerEditDialogOpen['fields'], editAppointment?: jqwidgets.SchedulerEditDialogOpen['editAppointment']) => void): (dialog?: jqwidgets.SchedulerEditDialogOpen['dialog'], fields?: jqwidgets.SchedulerEditDialogOpen['fields'], editAppointment?: jqwidgets.SchedulerEditDialogOpen['editAppointment']) => void {
if (arg !== undefined) {
this.host.jqxScheduler('editDialogOpen', arg);
} else {
return this.host.jqxScheduler('editDialogOpen');
}
}
editDialogCreate(arg?: (dialog?: jqwidgets.SchedulerEditDialogCreate['dialog'], fields?: jqwidgets.SchedulerEditDialogCreate['fields'], editAppointment?: jqwidgets.SchedulerEditDialogCreate['editAppointment']) => void): (dialog?: jqwidgets.SchedulerEditDialogCreate['dialog'], fields?: jqwidgets.SchedulerEditDialogCreate['fields'], editAppointment?: jqwidgets.SchedulerEditDialogCreate['editAppointment']) => void {
if (arg !== undefined) {
this.host.jqxScheduler('editDialogCreate', arg);
} else {
return this.host.jqxScheduler('editDialogCreate');
}
}
editDialogKeyDown(arg?: (dialog?: jqwidgets.SchedulerEditDialogKeyDown['dialog'], fields?: jqwidgets.SchedulerEditDialogKeyDown['fields'], editAppointment?: jqwidgets.SchedulerEditDialogKeyDown['editAppointment'], event?: jqwidgets.SchedulerEditDialogKeyDown['event']) => boolean): (dialog?: jqwidgets.SchedulerEditDialogKeyDown['dialog'], fields?: jqwidgets.SchedulerEditDialogKeyDown['fields'], editAppointment?: jqwidgets.SchedulerEditDialogKeyDown['editAppointment'], event?: jqwidgets.SchedulerEditDialogKeyDown['event']) => boolean {
if (arg !== undefined) {
this.host.jqxScheduler('editDialogKeyDown', arg);
} else {
return this.host.jqxScheduler('editDialogKeyDown');
}
}
editDialogClose(arg?: (dialog?: jqwidgets.SchedulerEditDialogClose['dialog'], fields?: jqwidgets.SchedulerEditDialogClose['fields'], editAppointment?: jqwidgets.SchedulerEditDialogClose['editAppointment']) => void): (dialog?: jqwidgets.SchedulerEditDialogClose['dialog'], fields?: jqwidgets.SchedulerEditDialogClose['fields'], editAppointment?: jqwidgets.SchedulerEditDialogClose['editAppointment']) => void {
if (arg !== undefined) {
this.host.jqxScheduler('editDialogClose', arg);
} else {
return this.host.jqxScheduler('editDialogClose');
}
}
exportSettings(arg?: jqwidgets.SchedulerExportSettings): jqwidgets.SchedulerExportSettings {
if (arg !== undefined) {
this.host.jqxScheduler('exportSettings', arg);
} else {
return this.host.jqxScheduler('exportSettings');
}
}
height(arg?: number | string): number | string {
if (arg !== undefined) {
this.host.jqxScheduler('height', arg);
} else {
return this.host.jqxScheduler('height');
}
}
legendPosition(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('legendPosition', arg);
} else {
return this.host.jqxScheduler('legendPosition');
}
}
legendHeight(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('legendHeight', arg);
} else {
return this.host.jqxScheduler('legendHeight');
}
}
localization(arg?: any): any {
if (arg !== undefined) {
this.host.jqxScheduler('localization', arg);
} else {
return this.host.jqxScheduler('localization');
}
}
min(arg?: any): any {
if (arg !== undefined) {
this.host.jqxScheduler('min', arg);
} else {
return this.host.jqxScheduler('min');
}
}
max(arg?: any): any {
if (arg !== undefined) {
this.host.jqxScheduler('max', arg);
} else {
return this.host.jqxScheduler('max');
}
}
ready(arg?: () => void): () => void {
if (arg !== undefined) {
this.host.jqxScheduler('ready', arg);
} else {
return this.host.jqxScheduler('ready');
}
}
renderAppointment(arg?: (data: jqwidgets.SchedulerRenderAppointment['data']) => any): (data: jqwidgets.SchedulerRenderAppointment['data']) => any {
if (arg !== undefined) {
this.host.jqxScheduler('renderAppointment', arg);
} else {
return this.host.jqxScheduler('renderAppointment');
}
}
rendering(arg?: () => void): () => void {
if (arg !== undefined) {
this.host.jqxScheduler('rendering', arg);
} else {
return this.host.jqxScheduler('rendering');
}
}
rendered(arg?: () => void): () => void {
if (arg !== undefined) {
this.host.jqxScheduler('rendered', arg);
} else {
return this.host.jqxScheduler('rendered');
}
}
rtl(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('rtl', arg);
} else {
return this.host.jqxScheduler('rtl');
}
}
resources(arg?: jqwidgets.SchedulerResources): jqwidgets.SchedulerResources {
if (arg !== undefined) {
this.host.jqxScheduler('resources', arg);
} else {
return this.host.jqxScheduler('resources');
}
}
rowsHeight(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('rowsHeight', arg);
} else {
return this.host.jqxScheduler('rowsHeight');
}
}
showToolbar(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('showToolbar', arg);
} else {
return this.host.jqxScheduler('showToolbar');
}
}
showLegend(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('showLegend', arg);
} else {
return this.host.jqxScheduler('showLegend');
}
}
showCurrent(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('showCurrent', arg);
} else {
return this.host.jqxScheduler('showCurrent');
}
}
showCurrentAppointment(arg?: boolean): boolean {
if (arg !== undefined) {
this.host.jqxScheduler('showCurrentAppointment', arg);
} else {
return this.host.jqxScheduler('showCurrentAppointment');
}
}
scrollBarSize(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('scrollBarSize', arg);
} else {
return this.host.jqxScheduler('scrollBarSize');
}
}
source(arg?: any): any {
if (arg !== undefined) {
this.host.jqxScheduler('source', arg);
} else {
return this.host.jqxScheduler('source');
}
}
statuses(arg?: jqwidgets.SchedulerStatuses): jqwidgets.SchedulerStatuses {
if (arg !== undefined) {
this.host.jqxScheduler('statuses', arg);
} else {
return this.host.jqxScheduler('statuses');
}
}
touchRowsHeight(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('touchRowsHeight', arg);
} else {
return this.host.jqxScheduler('touchRowsHeight');
}
}
theme(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('theme', arg);
} else {
return this.host.jqxScheduler('theme');
}
}
touchAppointmentsMinHeight(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('touchAppointmentsMinHeight', arg);
} else {
return this.host.jqxScheduler('touchAppointmentsMinHeight');
}
}
touchScrollBarSize(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('touchScrollBarSize', arg);
} else {
return this.host.jqxScheduler('touchScrollBarSize');
}
}
timeZone(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('timeZone', arg);
} else {
return this.host.jqxScheduler('timeZone');
}
}
touchDayNameFormat(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('touchDayNameFormat', arg);
} else {
return this.host.jqxScheduler('touchDayNameFormat');
}
}
toolBarRangeFormat(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('toolBarRangeFormat', arg);
} else {
return this.host.jqxScheduler('toolBarRangeFormat');
}
}
toolBarRangeFormatAbbr(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('toolBarRangeFormatAbbr', arg);
} else {
return this.host.jqxScheduler('toolBarRangeFormatAbbr');
}
}
toolbarHeight(arg?: number): number {
if (arg !== undefined) {
this.host.jqxScheduler('toolbarHeight', arg);
} else {
return this.host.jqxScheduler('toolbarHeight');
}
}
views(arg?: Array<any>): Array<any> {
if (arg !== undefined) {
this.host.jqxScheduler('views', arg);
} else {
return this.host.jqxScheduler('views');
}
}
view(arg?: string): string {
if (arg !== undefined) {
this.host.jqxScheduler('view', arg);
} else {
return this.host.jqxScheduler('view');
}
}
width(arg?: number | string): number | string {
if (arg !== undefined) {
this.host.jqxScheduler('width', arg);
} else {
return this.host.jqxScheduler('width');
}
}
// jqxSchedulerComponent functions
addAppointment(item: jqwidgets.SchedulerAppointmentDataFields): void {
this.host.jqxScheduler('addAppointment', item);
}
beginAppointmentsUpdate(): void {
this.host.jqxScheduler('beginAppointmentsUpdate');
}
clearAppointmentsSelection(): void {
this.host.jqxScheduler('clearAppointmentsSelection');
}
clearSelection(): void {
this.host.jqxScheduler('clearSelection');
}
closeMenu(): void {
this.host.jqxScheduler('closeMenu');
}
closeDialog(): void {
this.host.jqxScheduler('closeDialog');
}
deleteAppointment(appointmenId: string): void {
this.host.jqxScheduler('deleteAppointment', appointmenId);
}
destroy(): void {
this.host.jqxScheduler('destroy');
}
endAppointmentsUpdate(): void {
this.host.jqxScheduler('endAppointmentsUpdate');
}
ensureAppointmentVisible(id: string): void {
this.host.jqxScheduler('ensureAppointmentVisible', id);
}
ensureVisible(item: any, resourceId?: string): void {
this.host.jqxScheduler('ensureVisible', item, resourceId);
}
exportData(format: string): any {
return this.host.jqxScheduler('exportData', format);
}
focus(): void {
this.host.jqxScheduler('focus');
}
getAppointmentProperty(appointmentId: string, name: string): any {
return this.host.jqxScheduler('getAppointmentProperty', appointmentId, name);
}
getSelection(): jqwidgets.SchedulerGetSelection {
return this.host.jqxScheduler('getSelection');
}
getAppointments(): Array<jqwidgets.SchedulerAppointmentDataFields> {
return this.host.jqxScheduler('getAppointments');
}
getDataAppointments(): Array<any> {
return this.host.jqxScheduler('getDataAppointments');
}
hideAppointmentsByResource(resourcesId: string): void {
this.host.jqxScheduler('hideAppointmentsByResource', resourcesId);
}
openMenu(left: number, top: number): void {
this.host.jqxScheduler('openMenu', left, top);
}
openDialog(left: number, top: number): void {
this.host.jqxScheduler('openDialog', left, top);
}
selectAppointment(appointmentId: string): void {
this.host.jqxScheduler('selectAppointment', appointmentId);
}
setAppointmentProperty(appointmentId: string, name: string, value: any): void {
this.host.jqxScheduler('setAppointmentProperty', appointmentId, name, value);
}
selectCell(date: any, allday: boolean, resourceId: string): void {
this.host.jqxScheduler('selectCell', date, allday, resourceId);
}
showAppointmentsByResource(resourceId: string): void {
this.host.jqxScheduler('showAppointmentsByResource', resourceId);
}
scrollWidth(): number {
return this.host.jqxScheduler('scrollWidth');
}
scrollHeight(): number {
return this.host.jqxScheduler('scrollHeight');
}
scrollLeft(left: number): void {
this.host.jqxScheduler('scrollLeft', left);
}
scrollTop(top: number): void {
this.host.jqxScheduler('scrollTop', top);
}
// jqxSchedulerComponent events
onAppointmentChange = new EventEmitter();
onAppointmentClick = new EventEmitter();
onAppointmentDoubleClick = new EventEmitter();
onAppointmentDelete = new EventEmitter();
onAppointmentAdd = new EventEmitter();
onBindingComplete = new EventEmitter();
onCellClick = new EventEmitter();
onCellDoubleClick = new EventEmitter();
onContextMenuOpen = new EventEmitter();
onContextMenuClose = new EventEmitter();
onContextMenuItemClick = new EventEmitter();
onContextMenuCreate = new EventEmitter();
onDateChange = new EventEmitter();
onEditRecurrenceDialogOpen = new EventEmitter();
onEditRecurrenceDialogClose = new EventEmitter();
onEditDialogCreate = new EventEmitter();
onEditDialogOpen = new EventEmitter();
onEditDialogClose = new EventEmitter();
onViewChange = new EventEmitter();
__wireEvents__(): void {
this.host.on('appointmentChange', (eventData: any) => { this.onAppointmentChange.emit(eventData); });
this.host.on('appointmentClick', (eventData: any) => { this.onAppointmentClick.emit(eventData); });
this.host.on('appointmentDoubleClick', (eventData: any) => { this.onAppointmentDoubleClick.emit(eventData); });
this.host.on('appointmentDelete', (eventData: any) => { this.onAppointmentDelete.emit(eventData); });
this.host.on('appointmentAdd', (eventData: any) => { this.onAppointmentAdd.emit(eventData); });
this.host.on('bindingComplete', (eventData: any) => { this.onBindingComplete.emit(eventData); });
this.host.on('cellClick', (eventData: any) => { this.onCellClick.emit(eventData); });
this.host.on('cellDoubleClick', (eventData: any) => { this.onCellDoubleClick.emit(eventData); });
this.host.on('contextMenuOpen', (eventData: any) => { this.onContextMenuOpen.emit(eventData); });
this.host.on('contextMenuClose', (eventData: any) => { this.onContextMenuClose.emit(eventData); });
this.host.on('contextMenuItemClick', (eventData: any) => { this.onContextMenuItemClick.emit(eventData); });
this.host.on('contextMenuCreate', (eventData: any) => { this.onContextMenuCreate.emit(eventData); });
this.host.on('dateChange', (eventData: any) => { this.onDateChange.emit(eventData); });
this.host.on('editRecurrenceDialogOpen', (eventData: any) => { this.onEditRecurrenceDialogOpen.emit(eventData); });
this.host.on('editRecurrenceDialogClose', (eventData: any) => { this.onEditRecurrenceDialogClose.emit(eventData); });
this.host.on('editDialogCreate', (eventData: any) => { this.onEditDialogCreate.emit(eventData); });
this.host.on('editDialogOpen', (eventData: any) => { this.onEditDialogOpen.emit(eventData); });
this.host.on('editDialogClose', (eventData: any) => { this.onEditDialogClose.emit(eventData); });
this.host.on('viewChange', (eventData: any) => { this.onViewChange.emit(eventData); });
}
} //jqxSchedulerComponent