smart-webcomponents-angular
Version:
[](https://jqwidgets.com/license/)
781 lines • 364 kB
JavaScript
import { Directive, Input, Output, EventEmitter } from '@angular/core';
import { BaseElement, Smart } from './smart.element';
import * as i0 from "@angular/core";
export { Smart } from './smart.element';
export class SchedulerComponent extends BaseElement {
constructor(ref) {
super(ref);
this.eventHandlers = [];
/** @description This event is triggered when a batch update was started after executing the beginUpdate method.
* @param event. The custom event. */
this.onBeginUpdate = new EventEmitter();
/** @description This event is triggered when a batch update was ended from after executing the endUpdate method.
* @param event. The custom event. */
this.onEndUpdate = new EventEmitter();
/** @description This event is triggered when a new cell is selected/unselected.
* @param event. The custom event. Custom event was created with: event.detail( value, oldValue)
* value - The new selected Date.
* oldValue - The previously selected Date.
*/
this.onChange = new EventEmitter();
/** @description This event is triggered when an Event has been updated/inserted/removed/dragged/resized or an exception of a repeating event has been added/updated/removed.
* @param event. The custom event. Custom event was created with: event.detail( item, type)
* item - An object that represents the actual item with it's attributes.
* type - The type of change that is being done to the item.
*/
this.onItemChange = new EventEmitter();
/** @description This event is triggered when an Event is going to be updated/inserted/removed. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( item, type)
* item - An object that represents the actual item with it's attributes.
* type - The type of change that is going to be made to the item (e.g. 'inserting', 'removing', 'updating', 'exceptionInserting', 'exceptionUpdating', 'exceptionRemoving').
*/
this.onItemChanging = new EventEmitter();
/** @description This event is triggered when en event, event item or a context menu item is clicked.
* @param event. The custom event. Custom event was created with: event.detail( item, type, itemObj)
* item - The HTMLElement for the event.
* type - The type of item that is clicked. The possible values are: <ul><li>event - when an event item is clicked.</li><li>context - when a context menu item is clicked.</li></ul>.
* itemObj - The event object.
*/
this.onItemClick = new EventEmitter();
/** @description This event is triggered when an Event is inserted.
* @param event. The custom event. Custom event was created with: event.detail( item)
* item - An object that represents the actual item with it's attributes.
*/
this.onItemInsert = new EventEmitter();
/** @description This event is triggered when an Event is removed.
* @param event. The custom event. Custom event was created with: event.detail( item)
* item - An object that represents the actual item with it's attributes.
*/
this.onItemRemove = new EventEmitter();
/** @description This event is triggered when an Event is updated.
* @param event. The custom event. Custom event was created with: event.detail( type, item)
* type - The type of item that has been modified.
* item - An object that represents the actual item with it's attributes.
*/
this.onItemUpdate = new EventEmitter();
/** @description This event is triggered when the view is changed via user interaction.
* @param event. The custom event. Custom event was created with: event.detail( oldValue, value)
* oldValue - The value of the previously selected view.
* value - The value of the new selected view.
*/
this.onViewChange = new EventEmitter();
/** @description This event is triggered before the view is changed via user interaction. The view change action can be canceled if event.preventDefault() is called on the event.
* @param event. The custom event. Custom event was created with: event.detail( oldValue, value)
* oldValue - The value of the previously selected view.
* value - The value of the new selected view.
*/
this.onViewChanging = new EventEmitter();
/** @description This event is triggered when a shortcut key for an event is pressed. By default only 'Delete' key is used.
* @param event. The custom event. Custom event was created with: event.detail( key, target, eventObj)
* key - The shortcut key that was pressed.
* target - The event target (HTMLElement).
* eventObj - The scheduler Event object that affected by the keypress.
*/
this.onEventShortcutKey = new EventEmitter();
/** @description This event is triggered when the 'dateCurrent' property is changed. This can be caused by navigating to a different date.
* @param event. The custom event. Custom event was created with: event.detail( oldValue, value)
* oldValue - The previous current date that was in view.
* value - The current date in view.
*/
this.onDateChange = new EventEmitter();
/** @description This event is triggered when dragging of an event begins. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, item, itemDateRange, originalEvent)
* target - The HTMLElement that corresponds to the event that is going to be dragged.
* item - The scheduler Event object that is going to be dragged.
* itemDateRange - The start/end dates for the Scheduler Event.
* originalEvent - The original event object.
*/
this.onDragStart = new EventEmitter();
/** @description This event is triggered when dragging of an event finishes.
* @param event. The custom event. Custom event was created with: event.detail( target, item, itemDateRange, originalEvent)
* target - The HTMLElement that corresponds to the event that is dragged.
* item - The scheduler Event object that is dragged.
* itemDateRange - The new start/end dates for the dragged Scheduler Event.
* originalEvent - The original event object.
*/
this.onDragEnd = new EventEmitter();
/** @description This event is triggered when the user drops an item over a cell.
* @param event. The custom event. Custom event was created with: event.detail( target, date, allDay)
* target - The HTMLElement that corresponds to the event that is dragged.
* date - The cell's date under the pointer.
* allDay - Boolean value, which is true when the cell under the pointer is all day cell.
*/
this.onDropoverCell = new EventEmitter();
/** @description This event is triggered when resizing of a task starts. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, item, itemDateRange, originalEvent)
* target - The HTMLElement that corresponds to the event that is going to be resized.
* item - The scheduler Event object that is going to be resized.
* itemDateRange - The start/end dates for Scheduler Event that is going to be resized.
* originalEvent - The original event object.
*/
this.onResizeStart = new EventEmitter();
/** @description This event is triggered when the resizing of an event finishes.
* @param event. The custom event. Custom event was created with: event.detail( target, item, itemDateRange, originalEvent)
* target - The HTMLElement that corresponds to the event that is resized.
* item - The scheduler Event object that is resized.
* itemDateRange - The new start/end dates for the resized Scheduler Event.
* originalEvent - The original event object.
*/
this.onResizeEnd = new EventEmitter();
/** @description This event is triggered when the user starts top open the event dialog window. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, item, type, eventObj)
* target - The dialog window that is opening.
* item - The event object that is going to be edited.
* type - The type of window that is going to open. Two window types are available, the dafault which is an empty string ( does not have a type) and 'confirm' which is displayed when clicked on a repeating event.
* eventObj - The event object that is the target of the menu.
*/
this.onEditDialogOpening = new EventEmitter();
/** @description This event is triggered when the user opens the event dialog window.
* @param event. The custom event. Custom event was created with: event.detail( target, editors, item, eventObj)
* target - The dialog window that is opened.
* editors - An object containing all event editors that are present inside the window. This property is undefined when the window is of type 'confirm', because confirm windows do not contain editors.
* item - The event object that is being edited.
* eventObj - The event object that is the target of the menu.
*/
this.onEditDialogOpen = new EventEmitter();
/** @description This event is triggered when the user closes the event dialog window.
* @param event. The custom event. Custom event was created with: event.detail( target, editors, item, eventObj)
* target - The dialog window that is closed.
* editors - An object containing all event editors that are present inside the window. This property is undefined when the window is of type 'confirm', because confirm windows do not contain editors.
* item - The event object that is being edited.
* eventObj - The event object that is the target of the menu.
*/
this.onEditDialogClose = new EventEmitter();
/** @description This event is triggered when the user is about to close the event dialog window. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, item, type, eventObj)
* target - The dialog window that is closing.
* item - The event object that is edited.
* type - The type of window that is going to be closed. Two window types are available, the dafault which is an empty string ( does not have a type) and 'confirm' which is displayed when clicked on a repeating event.
* eventObj - The event object that is the target of the menu.
*/
this.onEditDialogClosing = new EventEmitter();
/** @description This event is triggered when the user begins to open the context menu on a timeline cell or an event element. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, cellObj, eventObj)
* target - The context menu instance.
* owner - The HTMLElement that the menu belongs to.
* cellObj - The cell object that is the target of the menu. If the target is an event instead of a cell this parameter will be undefined.
* eventObj - The event object that is the target of the menu. If the target is a cell instead of an event this paramter will be undefined.
*/
this.onContextMenuOpening = new EventEmitter();
/** @description This event is triggered when the context menu is opened.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, cellObj, eventObj)
* target - The context menu instance.
* owner - The HTMLElement that the menu belongs to.
* cellObj - The cell object that is the target of the menu. If the target is an event instead of a cell this parameter will be undefined.
* eventObj - The event object that is the target of the menu. If the target is a cell instead of an event this paramter will be undefined.
*/
this.onContextMenuOpen = new EventEmitter();
/** @description This event is triggered when the context menu is closed.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, cellObj, eventObj)
* target - The context menu instance.
* owner - The HTMLElement that the menu belongs to.
* cellObj - The cell object that is the target of the menu. If the target is an event instead of a cell this parameter will be undefined.
* eventObj - The event object that is the target of the menu. If the target is a cell instead of an event this paramter will be undefined.
*/
this.onContextMenuClose = new EventEmitter();
/** @description This event is triggered when the user is about to close the context menu. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, cellObj, eventObj)
* target - The context menu instance.
* owner - The HTMLElement that the menu belongs to.
* cellObj - The cell object that is the target of the menu. If the target is an event instead of a cell this parameter will be undefined.
* eventObj - The event object that is the target of the menu. If the target is a cell instead of an event this paramter will be undefined.
*/
this.onContextMenuClosing = new EventEmitter();
/** @description This event is triggered when the event menu is about to open. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, eventObj)
* target - The menu instance.
* owner - The HTMLElement of the event that the menu belongs to.
* eventObj - The event object that is the target of the menu.
*/
this.onEventMenuOpening = new EventEmitter();
/** @description This event is triggered when the event menu is opened.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, eventObj)
* target - The menu instance.
* owner - The HTMLElement of the event that the menu belongs to.
* eventObj - The event object that is the target of the menu.
*/
this.onEventMenuOpen = new EventEmitter();
/** @description This event is triggered when the event menu is closed.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, eventObj)
* target - The menu instance.
* owner - The HTMLElement of the event that the menu belongs to.
* eventObj - The event object that is the target of the menu.
*/
this.onEventMenuClose = new EventEmitter();
/** @description This event is triggered when the evet menu is about to close. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
* @param event. The custom event. Custom event was created with: event.detail( target, owner, eventObj)
* target - The menu instance.
* owner - The HTMLElement of the event that the menu belongs to.
* eventObj - The event object that is the target of the menu.
*/
this.onEventMenuClosing = new EventEmitter();
/** @description This event is triggered when the date selection menu is opened.
* @param event. The custom event. Custom event was created with: event.detail( target)
* target - The menu instance.
*/
this.onDateMenuOpen = new EventEmitter();
/** @description This event is triggered when the date selection menu is closed.
* @param event. The custom event. Custom event was created with: event.detail( target)
* target - The menu instance.
*/
this.onDateMenuClose = new EventEmitter();
/** @description This event is triggered when the view selection menu is opened.
* @param event. The custom event. Custom event was created with: event.detail( target)
* target - The menu instance.
*/
this.onViewMenuOpen = new EventEmitter();
/** @description This event is triggered when the view selection menu is closed.
* @param event. The custom event. Custom event was created with: event.detail( target)
* target - The menu instance.
*/
this.onViewMenuClose = new EventEmitter();
/** @description This event is triggered when a notification is opened.
* @param event. The custom event. Custom event was created with: event.detail( instance)
* instance - The toast item instance that is opened.
*/
this.onNotificationOpen = new EventEmitter();
/** @description This event is triggered when a notification is closed.
* @param event. The custom event. Custom event was created with: event.detail( instance)
* instance - The toast item instance that is closed.
*/
this.onNotificationClose = new EventEmitter();
this.nativeElement = ref.nativeElement;
}
/** @description Creates the component on demand.
* @param properties An optional object of properties, which will be added to the template binded ones.
*/
createComponent(properties = {}) {
this.nativeElement = document.createElement('smart-scheduler');
for (let propertyName in properties) {
this.nativeElement[propertyName] = properties[propertyName];
}
return this.nativeElement;
}
/** @description Determines the scroll speed while dragging an event. */
get autoScrollStep() {
return this.nativeElement ? this.nativeElement.autoScrollStep : undefined;
}
set autoScrollStep(value) {
this.nativeElement ? this.nativeElement.autoScrollStep = value : undefined;
}
/** @description Determines whether the all day cells in Day and Week views automatically change their height depending on the events count in these cells. */
get autoHeightAllDayCells() {
return this.nativeElement ? this.nativeElement.autoHeightAllDayCells : undefined;
}
set autoHeightAllDayCells(value) {
this.nativeElement ? this.nativeElement.autoHeightAllDayCells = value : undefined;
}
/** @description Defines an array of objects with start and end fields, where start and end are Date objects. For example: [{ 'start': '2022-10-25T12:00.000Z', 'end': '2022-10-25T13:00.000Z' }]. */
get available() {
return this.nativeElement ? this.nativeElement.available : undefined;
}
set available(value) {
this.nativeElement ? this.nativeElement.available = value : undefined;
}
/** @description Determines the color scheme for the event background selector in the event window editor. */
get colorScheme() {
return this.nativeElement ? this.nativeElement.colorScheme : undefined;
}
set colorScheme(value) {
this.nativeElement ? this.nativeElement.colorScheme = value : undefined;
}
/** @description Determines the current time of the Scheduler to use for the current time indicator functionality. By default the current time is Today. */
get currentTime() {
return this.nativeElement ? this.nativeElement.currentTime : undefined;
}
set currentTime(value) {
this.nativeElement ? this.nativeElement.currentTime = value : undefined;
}
/** @description Enables/Disables the current time indicator. Current time indicator shows the current time in the appropriate view cells. */
get currentTimeIndicator() {
return this.nativeElement ? this.nativeElement.currentTimeIndicator : undefined;
}
set currentTimeIndicator(value) {
this.nativeElement ? this.nativeElement.currentTimeIndicator = value : undefined;
}
/** @description Determines the refresh interval in seconds for the currentTimeIndicator. */
get currentTimeIndicatorInterval() {
return this.nativeElement ? this.nativeElement.currentTimeIndicatorInterval : undefined;
}
set currentTimeIndicatorInterval(value) {
this.nativeElement ? this.nativeElement.currentTimeIndicatorInterval = value : undefined;
}
/** @description Determines the context menu items that are visible when the Context Menu is opened. */
get contextMenuDataSource() {
return this.nativeElement ? this.nativeElement.contextMenuDataSource : undefined;
}
set contextMenuDataSource(value) {
this.nativeElement ? this.nativeElement.contextMenuDataSource = value : undefined;
}
/** @description Determines whether the clipboard shortcuts for copy/paste/cut action of events are visible in the Scheduler context menu or not. */
get contextMenuClipboardActions() {
return this.nativeElement ? this.nativeElement.contextMenuClipboardActions : undefined;
}
set contextMenuClipboardActions(value) {
this.nativeElement ? this.nativeElement.contextMenuClipboardActions = value : undefined;
}
/** @description Allows to customize the content of the event elements. It can be an HTMLTemplateElement that will be applied to all events or it's id as a string or a function that will be called for each event with the following parameters: eventContent - the content holder for the event,eventObj - the event object.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the corresponding object properties. */
get eventTemplate() {
return this.nativeElement ? this.nativeElement.eventTemplate : undefined;
}
set eventTemplate(value) {
this.nativeElement ? this.nativeElement.eventTemplate = value : undefined;
}
/** @description Allows to customize the content of the event collector elements. It can be an HTMLTemplateElement that will be applied to all events or it's id as a string or a function that will be called for each event with the following parameters: eventContent - the content holder for the event,eventObj - the event object.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the corresponding object properties. */
get eventCollectorTemplate() {
return this.nativeElement ? this.nativeElement.eventCollectorTemplate : undefined;
}
set eventCollectorTemplate(value) {
this.nativeElement ? this.nativeElement.eventCollectorTemplate = value : undefined;
}
/** @description Determines how the events inside the Scheduler are rendered.classic - the events are arranged next to each other and try to fit inside the cells.modern - the events obey the CSS property that determines their size and if there's not enough space inside the cell for all events to appear, an event collector is created to hold the rest of the events. On mobile phones only collectors are created. */
get eventRenderMode() {
return this.nativeElement ? this.nativeElement.eventRenderMode : undefined;
}
set eventRenderMode(value) {
this.nativeElement ? this.nativeElement.eventRenderMode = value : undefined;
}
/** @description Allows to customize the content of the event menu items (tooltip). When clicked on an event element an event menu with details opens. It can be an HTMLTemplateElement that will be applied to all events or it's id as a string or a function that will be called for each event with the following parameters: eventContent - the content holder for the event,eventObj - the event object.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the corresponding object properties. */
get eventTooltipTemplate() {
return this.nativeElement ? this.nativeElement.eventTooltipTemplate : undefined;
}
set eventTooltipTemplate(value) {
this.nativeElement ? this.nativeElement.eventTooltipTemplate = value : undefined;
}
/** @description Allows to customize the content of the timeline cells. It can be an HTMLTemplateElement that will be applied to all cells or it's id as a string or a function that will be called for each cell with the following parameters: cellContent - the content holder for the cell,cellDate - the cell date.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the value of the cell. */
get cellTemplate() {
return this.nativeElement ? this.nativeElement.cellTemplate : undefined;
}
set cellTemplate(value) {
this.nativeElement ? this.nativeElement.cellTemplate = value : undefined;
}
/** @description Determines the currently visible date for the Scheduler. */
get dateCurrent() {
return this.nativeElement ? this.nativeElement.dateCurrent : undefined;
}
set dateCurrent(value) {
this.nativeElement ? this.nativeElement.dateCurrent = value : undefined;
}
/** @description Sets the Schedulers's Data Export options. */
get dataExport() {
return this.nativeElement ? this.nativeElement.dataExport : undefined;
}
set dataExport(value) {
this.nativeElement ? this.nativeElement.dataExport = value : undefined;
}
/** @description Determines the events that will be loaded inside the Timeline. Each event represents an object that should contain the following properties: */
get dataSource() {
return this.nativeElement ? this.nativeElement.dataSource : undefined;
}
set dataSource(value) {
this.nativeElement ? this.nativeElement.dataSource = value : undefined;
}
/** @description A callback that can be used to customize the text inside the date selector located in the header. The callback has one parameter - the current date. */
get dateSelectorFormatFunction() {
return this.nativeElement ? this.nativeElement.dateSelectorFormatFunction : undefined;
}
set dateSelectorFormatFunction(value) {
this.nativeElement ? this.nativeElement.dateSelectorFormatFunction = value : undefined;
}
/** @description Determines the day format of the dates in the timeline. */
get dayFormat() {
return this.nativeElement ? this.nativeElement.dayFormat : undefined;
}
set dayFormat(value) {
this.nativeElement ? this.nativeElement.dayFormat = value : undefined;
}
/** @description Enables or disables the element. */
get disabled() {
return this.nativeElement ? this.nativeElement.disabled : undefined;
}
set disabled(value) {
this.nativeElement ? this.nativeElement.disabled = value : undefined;
}
/** @description Disables auto scrolling of the timeline while dragging/resizing an event. */
get disableAutoScroll() {
return this.nativeElement ? this.nativeElement.disableAutoScroll : undefined;
}
set disableAutoScroll(value) {
this.nativeElement ? this.nativeElement.disableAutoScroll = value : undefined;
}
/** @description Disables dragging of events. */
get disableDrag() {
return this.nativeElement ? this.nativeElement.disableDrag : undefined;
}
set disableDrag(value) {
this.nativeElement ? this.nativeElement.disableDrag = value : undefined;
}
/** @description Disables dropping of events. */
get disableDrop() {
return this.nativeElement ? this.nativeElement.disableDrop : undefined;
}
set disableDrop(value) {
this.nativeElement ? this.nativeElement.disableDrop = value : undefined;
}
/** @description Disables resizing of events. */
get disableResize() {
return this.nativeElement ? this.nativeElement.disableResize : undefined;
}
set disableResize(value) {
this.nativeElement ? this.nativeElement.disableResize = value : undefined;
}
/** @description Disables the cell selection. */
get disableSelection() {
return this.nativeElement ? this.nativeElement.disableSelection : undefined;
}
set disableSelection(value) {
this.nativeElement ? this.nativeElement.disableSelection = value : undefined;
}
/** @description Disables the window editor for the events. */
get disableWindowEditor() {
return this.nativeElement ? this.nativeElement.disableWindowEditor : undefined;
}
set disableWindowEditor(value) {
this.nativeElement ? this.nativeElement.disableWindowEditor = value : undefined;
}
/** @description Disables the context menu of the events and cells. */
get disableContextMenu() {
return this.nativeElement ? this.nativeElement.disableContextMenu : undefined;
}
set disableContextMenu(value) {
this.nativeElement ? this.nativeElement.disableContextMenu = value : undefined;
}
/** @description Disables the event menu that appears when an event/collector has been clicked. */
get disableEventMenu() {
return this.nativeElement ? this.nativeElement.disableEventMenu : undefined;
}
set disableEventMenu(value) {
this.nativeElement ? this.nativeElement.disableEventMenu = value : undefined;
}
/** @description Disables the view menu that allows to select the current Scheduler view. */
get disableViewMenu() {
return this.nativeElement ? this.nativeElement.disableViewMenu : undefined;
}
set disableViewMenu(value) {
this.nativeElement ? this.nativeElement.disableViewMenu = value : undefined;
}
/** @description Disables the date menu that allows to select the current Scheduler date. */
get disableDateMenu() {
return this.nativeElement ? this.nativeElement.disableDateMenu : undefined;
}
set disableDateMenu(value) {
this.nativeElement ? this.nativeElement.disableDateMenu = value : undefined;
}
/** @description A callback that can be used to customize the drag feedback that appears when an event is dragged. */
get dragFeedbackFormatFunction() {
return this.nativeElement ? this.nativeElement.dragFeedbackFormatFunction : undefined;
}
set dragFeedbackFormatFunction(value) {
this.nativeElement ? this.nativeElement.dragFeedbackFormatFunction = value : undefined;
}
/** @description Determines the offset for the drag feedback from the pointer. */
get dragOffset() {
return this.nativeElement ? this.nativeElement.dragOffset : undefined;
}
set dragOffset(value) {
this.nativeElement ? this.nativeElement.dragOffset = value : undefined;
}
/** @description Determines the filtering condition for the events.The filter property takes an array of objects or a function. Each object represents a single filtering condition with the following attributes: name - the name of the Scheduler event property that will be filtered by.value - the filtering condition value. The value will be used to compare the events based on the filterMode, for example: [{ name: 'price', value: 25 }]. The value can also be a function. The function accepts a single arguemnt - the value that corresponds to the filtered attribute. The function allows to apply custom condition that is different from the default filter modes. It should return true ( if the evnet passes the filtering condition ) or false ( if the event does not meet the filtering condition ). Here's an example: [{ name: 'roomId', value: (id) => ['2', '3'].indexOf(id + '') > -1 }]. In the example the events that do not have a 'roomId' property that is equal to '2' or '3' will be filtered out.. If a function is set to the filter property instead, it allows to completely customize the filtering logic. The function passes a single argument - each Scheduler event that will be displayed. The function should return true ( if the condition is met ) or false ( if not ). */
get filter() {
return this.nativeElement ? this.nativeElement.filter : undefined;
}
set filter(value) {
this.nativeElement ? this.nativeElement.filter = value : undefined;
}
/** @description Determines whether Scheduler's filtering is enabled or not. */
get filterable() {
return this.nativeElement ? this.nativeElement.filterable : undefined;
}
set filterable(value) {
this.nativeElement ? this.nativeElement.filterable = value : undefined;
}
/** @description Determines the filter mode. */
get filterMode() {
return this.nativeElement ? this.nativeElement.filterMode : undefined;
}
set filterMode(value) {
this.nativeElement ? this.nativeElement.filterMode = value : undefined;
}
/** @description A getter that returns an array of all Scheduler events. */
get events() {
return this.nativeElement ? this.nativeElement.events : undefined;
}
set events(value) {
this.nativeElement ? this.nativeElement.events = value : undefined;
}
/** @description Determines the first day of week for the Scheduler. By default it's Sunday. */
get firstDayOfWeek() {
return this.nativeElement ? this.nativeElement.firstDayOfWeek : undefined;
}
set firstDayOfWeek(value) {
this.nativeElement ? this.nativeElement.firstDayOfWeek = value : undefined;
}
/** @description Allows to customize the footer of the Scheduler. It can be an HTMLTemplateElement, it's id as a string or a function with the following parameters: footerContainer - the footer container.. */
get footerTemplate() {
return this.nativeElement ? this.nativeElement.footerTemplate : undefined;
}
set footerTemplate(value) {
this.nativeElement ? this.nativeElement.footerTemplate = value : undefined;
}
/** @description Determines whether the events will be grouped by date. */
get groupByDate() {
return this.nativeElement ? this.nativeElement.groupByDate : undefined;
}
set groupByDate(value) {
this.nativeElement ? this.nativeElement.groupByDate = value : undefined;
}
/** @description Determines the grouping orientation. */
get groupOrientation() {
return this.nativeElement ? this.nativeElement.groupOrientation : undefined;
}
set groupOrientation(value) {
this.nativeElement ? this.nativeElement.groupOrientation = value : undefined;
}
/** @description Allows to customize the content of the group cells that are visible inside the header. It can be an HTMLTemplateElement that will be applied to all cells or it's id as a string or a function that will be called for each group cell with the following parameters: cellContent - the content holder for the group cell.cellObj - the group cell object.. When using an HTMLTemplateElement it's possible to add property bindings inside the template that will be mapped to the corresponding object properties. */
get groupTemplate() {
return this.nativeElement ? this.nativeElement.groupTemplate : undefined;
}
set groupTemplate(value) {
this.nativeElement ? this.nativeElement.groupTemplate = value : undefined;
}
/** @description Determines the resources that the events are grouped by. */
get groups() {
return this.nativeElement ? this.nativeElement.groups : undefined;
}
set groups(value) {
this.nativeElement ? this.nativeElement.groups = value : undefined;
}
/** @description Determines the end hour that will be displayed in 'day' and 'week' views. */
get hourEnd() {
return this.nativeElement ? this.nativeElement.hourEnd : undefined;
}
set hourEnd(value) {
this.nativeElement ? this.nativeElement.hourEnd = value : undefined;
}
/** @description Determines the start hour that will be displayed in 'day' and 'week' views. */
get hourStart() {
return this.nativeElement ? this.nativeElement.hourStart : undefined;
}
set hourStart(value) {
this.nativeElement ? this.nativeElement.hourStart = value : undefined;
}
/** @description Determines the formatting of hours inside the element. */
get hourFormat() {
return this.nativeElement ? this.nativeElement.hourFormat : undefined;
}
set hourFormat(value) {
this.nativeElement ? this.nativeElement.hourFormat = value : undefined;
}
/** @description Allows to customize the header of the Scheduler. It can be an HTMLTemplateElement, it's id as a string or a function with the following parameters: headerContent - the header container.. */
get headerTemplate() {
return this.nativeElement ? this.nativeElement.headerTemplate : undefined;
}
set headerTemplate(value) {
this.nativeElement ? this.nativeElement.headerTemplate = value : undefined;
}
/** @description Determines the position of the Date selector inside the Header of the element. */
get headerDatePosition() {
return this.nativeElement ? this.nativeElement.headerDatePosition : undefined;
}
set headerDatePosition(value) {
this.nativeElement ? this.nativeElement.headerDatePosition = value : undefined;
}
/** @description Determines the styling of the Header navigation controls. */
get headerNavigationStyle() {
return this.nativeElement ? this.nativeElement.headerNavigationStyle : undefined;
}
set headerNavigationStyle(value) {
this.nativeElement ? this.nativeElement.headerNavigationStyle = value : undefined;
}
/** @description Determines the position of the view selector control inside the Header of the element. */
get headerViewPosition() {
return this.nativeElement ? this.nativeElement.headerViewPosition : undefined;
}
set headerViewPosition(value) {
this.nativeElement ? this.nativeElement.headerViewPosition = value : undefined;
}
/** @description Determines whether the 'All Day' container with the all day events is hidden or not. */
get hideAllDay() {
return this.nativeElement ? this.nativeElement.hideAllDay : undefined;
}
set hideAllDay(value) {
this.nativeElement ? this.nativeElement.hideAllDay = value : undefined;
}
/** @description Determines whether the days set by 'nonworkingDays' property are hidden or not. */
get hideNonworkingWeekdays() {
return this.nativeElement ? this.nativeElement.hideNonworkingWeekdays : undefined;
}
set hideNonworkingWeekdays(value) {
this.nativeElement ? this.nativeElement.hideNonworkingWeekdays = value : undefined;
}
/** @description Determines whether other month days are visible when view is set to month. When enabled, events that start on other month days are not displayed and the cells that represent such days do not allow the creation of new events on them. Also dragging and droping an event on other month days is not allowed. Reszing is also affected. Events can end on other month days, but cannot start on one. */
get hideOtherMonthDays() {
return this.nativeElement ? this.nativeElement.hideOtherMonthDays : undefined;
}
set hideOtherMonthDays(value) {
this.nativeElement ? this.nativeElement.hideOtherMonthDays = value : undefined;
}
/** @description Determines whether the 'Today' button is hidden or not. */
get hideTodayButton() {
return this.nativeElement ? this.nativeElement.hideTodayButton : undefined;
}
set hideTodayButton(value) {
this.nativeElement ? this.nativeElement.hideTodayButton = value : undefined;
}
/** @description Determines whether the checkable items in the view selection menu are hidden or not. */
get hideViewMenuCheckableItems() {
return this.nativeElement ? this.nativeElement.hideViewMenuCheckableItems : undefined;
}
set hideViewMenuCheckableItems(value) {
this.nativeElement ? this.nativeElement.hideViewMenuCheckableItems = value : undefined;
}
/** @description Determines whether the weekend days are hidden or not. */
get hideWeekend() {
return this.nativeElement ? this.nativeElement.hideWeekend : undefined;
}
set hideWeekend(value) {
this.nativeElement ? this.nativeElement.hideWeekend = value : undefined;
}
/** @description Determines the location of the legend inside the Scheduler. By default the location is inside the footer but it can also reside in the header. */
get legendLocation() {
return this.nativeElement ? this.nativeElement.legendLocation : undefined;
}
set legendLocation(value) {
this.nativeElement ? this.nativeElement.legendLocation = value : undefined;
}
/** @description Determines the position of the legend. By default it's positioned to the near side but setting it to 'far' will change that. */
get legendPosition() {
return this.nativeElement ? this.nativeElement.legendPosition : undefined;
}
set legendPosition(value) {
this.nativeElement ? this.nativeElement.legendPosition = value : undefined;
}
/** @description Determines the layout of the legend items. */
get legendLayout() {
return this.nativeElement ? this.nativeElement.legendLayout : undefined;
}
set legendLayout(value) {
this.nativeElement ? this.nativeElement.legendLayout = value : undefined;
}
/** @description Determines the number of items when the legend switches automatically from horizontal list to menu. */
get legendLayoutMenuBreakpoint() {
return this.nativeElement ? this.nativeElement.legendLayoutMenuBreakpoint : undefined;
}
set legendLayoutMenuBreakpoint(value) {
this.nativeElement ? this.nativeElement.legendLayoutMenuBreakpoint = value : undefined;
}
/** @description Determines the mouse wheel step. When this property is set to a positive number, the scroll step with mouse wheel or trackpad will depend on the property value. */
get mouseWheelStep() {
return this.nativeElement ? this.nativeElement.mouseWheelStep : undefined;
}
set mouseWheelStep(value) {
this.nativeElement ? this.nativeElement.mouseWheelStep = value : undefined;
}
/** @description Determines weather or not horizontal scrollbar is shown. */
get horizontalScrollBarVisibility() {
return this.nativeElement ? this.nativeElement.horizontalScrollBarVisibility : undefined;
}
set horizontalScrollBarVisibility(value) {
this.nativeElement ? this.nativeElement.horizontalScrollBarVisibility = value : undefined;
}
/** @description Sets or gets the license which unlocks the product. */
get license() {
return this.nativeElement ? this.nativeElement.license : undefined;
}
set license(value) {
this.nativeElement ? this.nativeElement.license = value : undefined;
}
/** @description Determines the language of the Scheduler. */
get locale() {
return this.nativeElement ? this.nativeElement.locale : undefined;
}
set locale(value) {
this.nativeElement ? this.nativeElement.locale = value : undefined;
}
/** @description Detetmines the maximum view date for the Scheduler. */
get max() {
return this.nativeElement ? this.nativeElement.max : undefined;
}
set max(value) {
this.nativeElement ? this.nativeElement.max = value : undefined;
}
/** @description Detetmines the maximum number of events per Scheduler cell. By default this property is null which means that the number of events per cell is automatically determined by the size of the events. */
get maxEventsPerCell() {
return this.nativeElement ? this.nativeElement.maxEventsPerCell : undefined;
}
set maxEventsPerCell(value) {
this.nativeElement ? this.nativeElement.maxEventsPerCell = value : undefined;
}
/** @description Detetmines the minimum view date for the Scheduler. */
get min() {
return this.nativeElement ? this.nativeElement.min : undefined;
}
set min(value) {
this.nativeElement ? this.nativeElement.min = value : undefined;
}
/** @description Sets or gets an object specifying strings used in the element that can be localized. Used in conjunction with the property locale. */
get messages() {
return this.nativeElement ? this.nativeElement.messages : undefined;
}
set messages(value) {
this.nativeElement ? this.nativeElement.messages = value : undefined;
}
/** @description Determines the minute formatting inside the Scheduler. */
get minuteFormat() {
return this.nativeElement ? this.nativeElement.minuteFormat : undefined;
}
set minuteFormat(value) {
this.nativeElement ? this.nativeElement.minuteFormat = value : undefined;
}
/** @description Determines the month name formatting inside the Scheduler. */
get monthFormat() {
return this.nativeElement ? this.nativeElement.monthFormat : undefined;
}
set monthFormat(value) {
this.nativeElement ? this.nativeElement.monthFormat = value : undefined;
}
/** @description Determines the nonworking days of the week from 0 to 6, where 0 is the first day of the week and 6 is the last day. Nonworking days will be colored differently inside the Timeline. The color is determined by a CSS variable. */
get nonworkingDays() {
return this.nativeElement ? this.nativeElement.nonworkingDays : undefined;
}
set nonworkingDays(value) {
this.nativeElement ? this.nativeElement.nonworkingDays = value : undefined;
}
/** @description Determines the nonworking hours of the day. Hours are represented as numbers inside an array, however ranges of hours can be defined as an array with starting and ending hour separated by a comma. In the timline the cells that represent nonworking days are colored differently from the rest. */
get nonworkingHours() {
return this.nativeElement ? this.nativeElement.nonworkingHours : undefined;
}
set nonworkingHours(value) {
this.nativeElement ? this.nativeElement.nonworkingHours = value : undefined;
}
/** @description Determines the interval (in seconds) at which the element will check for notifications. */
get notificationInterval() {
return this.nativeElement ? this.nativeElement.notificationInterval : undefined;
}
set notificationInterval(value) {
this.nativeElement ? this.nativeElement.notificationInterval = value : undefined;
}
/** @description Determines the visibility of the resize handles. */
get resizeHandlesVisibility() {
return this.nativeElement ? this.nativeElement.resizeHandlesVisibility : undefined;
}
set resizeHandlesVisibility(value) {
this.nativeElement ? this.nativeElement.resizeHandlesVisibility = value : undefined;
}
/** @description Determines the rate at which the element will refresh it's content on element resize. By default it's refresh immediately. This property is used for element resize throttling */
get resizeInterval() {
return this.nativeElement ? this.nativeElement.resizeInterval : undefined;
}
set resizeInterval(value) {
this.nativeElement ? this.nativeElement.resizeInterval = value : undefined;
}
/** @description An array of resources that can be assigned to the events. */
get resources() {
return this.nativeElement ? this.nativeElement.resources : undefined;
}
set resources(value) {
this.nativeElement ? this.nativeElement.resources = value : undefined;
}
/** @description Defines an array of dates that are not allowed to have events on. Events that overlap restricted Dates or start/end on them will not be displayed. */
get restrictedDates() {
return this.nativeElement ? this.nativeElement.rest