smart-webcomponents-react
Version:
[](https://jqwidgets.com/license/)
778 lines • 68.5 kB
TypeScript
import React from "react";
import { SchedulerProperties } from "./../index";
import { SchedulerEventRenderMode, SchedulerDayFormat, FilterMode, SchedulerGroupOrientation, SchedulerHourFormat, SchedulerHeaderDatePosition, SchedulerHeaderNavigationStyle, SchedulerHeaderViewPosition, SchedulerLegendLocation, SchedulerLegendPosition, SchedulerLegendLayout, HorizontalScrollBarVisibility, MinuteFormat, MonthFormat, ResizeHandlesVisibility, SchedulerScrollButtonsPosition, SchedulerSortOrder, SchedulerTimelineDayScale, SchedulerTimeZone, VerticalScrollBarVisibility, SchedulerViewType, SchedulerViews, SchedulerViewSelectorType, SchedulerViewStartDay, WeekDayFormat, YearFormat, SchedulerDataExport, SchedulerEvent, SchedulerResource, SchedulerStatuse } from './../index';
export { SchedulerProperties } from "./../index";
export { SchedulerEventRenderMode, SchedulerRepeatFreq, SchedulerNotificationType, SchedulerDayFormat, FilterMode, SchedulerGroupOrientation, SchedulerHourFormat, SchedulerHeaderDatePosition, SchedulerHeaderNavigationStyle, SchedulerHeaderViewPosition, SchedulerLegendLocation, SchedulerLegendPosition, SchedulerLegendLayout, HorizontalScrollBarVisibility, MinuteFormat, MonthFormat, ResizeHandlesVisibility, SchedulerResourceSortOrder, SchedulerScrollButtonsPosition, SchedulerSortOrder, SchedulerTimelineDayScale, SchedulerTimeZone, VerticalScrollBarVisibility, SchedulerViewType, SchedulerViews, SchedulerViewSelectorType, SchedulerViewStartDay, WeekDayFormat, YearFormat, SchedulerDataExport, SchedulerEvent, SchedulerEventRepeat, SchedulerNotification, SchedulerResource, SchedulerStatuse } from './../index';
export { DataAdapter } from './../index';
declare let Smart: any;
export { Smart };
export interface SchedulerProps extends SchedulerProperties {
className?: string;
style?: React.CSSProperties;
onBeginUpdate?: ((event?: Event) => void) | undefined;
onEndUpdate?: ((event?: Event) => void) | undefined;
onChange?: ((event?: Event) => void) | undefined;
onItemChange?: ((event?: Event) => void) | undefined;
onItemChanging?: ((event?: Event) => void) | undefined;
onItemClick?: ((event?: Event) => void) | undefined;
onItemInsert?: ((event?: Event) => void) | undefined;
onItemRemove?: ((event?: Event) => void) | undefined;
onItemUpdate?: ((event?: Event) => void) | undefined;
onViewChange?: ((event?: Event) => void) | undefined;
onViewChanging?: ((event?: Event) => void) | undefined;
onEventShortcutKey?: ((event?: Event) => void) | undefined;
onDateChange?: ((event?: Event) => void) | undefined;
onDragStart?: ((event?: Event) => void) | undefined;
onDragEnd?: ((event?: Event) => void) | undefined;
onDropoverCell?: ((event?: Event) => void) | undefined;
onResizeStart?: ((event?: Event) => void) | undefined;
onResizeEnd?: ((event?: Event) => void) | undefined;
onEditDialogOpening?: ((event?: Event) => void) | undefined;
onEditDialogOpen?: ((event?: Event) => void) | undefined;
onEditDialogClose?: ((event?: Event) => void) | undefined;
onEditDialogClosing?: ((event?: Event) => void) | undefined;
onContextMenuOpening?: ((event?: Event) => void) | undefined;
onContextMenuOpen?: ((event?: Event) => void) | undefined;
onContextMenuClose?: ((event?: Event) => void) | undefined;
onContextMenuClosing?: ((event?: Event) => void) | undefined;
onEventMenuOpening?: ((event?: Event) => void) | undefined;
onEventMenuOpen?: ((event?: Event) => void) | undefined;
onEventMenuClose?: ((event?: Event) => void) | undefined;
onEventMenuClosing?: ((event?: Event) => void) | undefined;
onDateMenuOpen?: ((event?: Event) => void) | undefined;
onDateMenuClose?: ((event?: Event) => void) | undefined;
onViewMenuOpen?: ((event?: Event) => void) | undefined;
onViewMenuClose?: ((event?: Event) => void) | undefined;
onNotificationOpen?: ((event?: Event) => void) | undefined;
onNotificationClose?: ((event?: Event) => void) | undefined;
onCreate?: ((event?: Event) => void) | undefined;
onReady?: ((event?: Event) => void) | undefined;
}
/**
Scheduler displays a set ot Events in Day, Week, Month, Agenda, Timeline Day, Timeline Week, Timeline Month views.
*/
export declare class Scheduler extends React.Component<React.HTMLAttributes<Element> & SchedulerProps, any> {
private _id;
private nativeElement;
private componentRef;
get id(): string;
/** Determines the scroll speed while dragging an event.
* Property type: number
*/
get autoScrollStep(): number;
set autoScrollStep(value: number);
/** Determines whether the all day cells in Day and Week views automatically change their height depending on the events count in these cells.
* Property type: boolean
*/
get autoHeightAllDayCells(): boolean;
set autoHeightAllDayCells(value: boolean);
/** 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' }].
* Property type: any
*/
get available(): any;
set available(value: any);
/** Determines the color scheme for the event background selector in the event window editor.
* Property type: string[]
*/
get colorScheme(): string[];
set colorScheme(value: string[]);
/** Determines the current time of the Scheduler to use for the current time indicator functionality. By default the current time is Today.
* Property type: string | Date
*/
get currentTime(): string | Date;
set currentTime(value: string | Date);
/** Enables/Disables the current time indicator. Current time indicator shows the current time in the appropriate view cells.
* Property type: boolean
*/
get currentTimeIndicator(): boolean;
set currentTimeIndicator(value: boolean);
/** Determines the refresh interval in seconds for the currentTimeIndicator.
* Property type: number
*/
get currentTimeIndicatorInterval(): number;
set currentTimeIndicatorInterval(value: number);
/** Determines the context menu items that are visible when the Context Menu is opened.
* Property type: any[]
*/
get contextMenuDataSource(): any[];
set contextMenuDataSource(value: any[]);
/** Determines whether the clipboard shortcuts for copy/paste/cut action of events are visible in the Scheduler context menu or not.
* Property type: boolean
*/
get contextMenuClipboardActions(): boolean;
set contextMenuClipboardActions(value: boolean);
/** 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.
* Property type: any
*/
get eventTemplate(): any;
set eventTemplate(value: any);
/** 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.
* Property type: any
*/
get eventCollectorTemplate(): any;
set eventCollectorTemplate(value: any);
/** 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.
* Property type: SchedulerEventRenderMode | string
*/
get eventRenderMode(): SchedulerEventRenderMode | string;
set eventRenderMode(value: SchedulerEventRenderMode | string);
/** 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.
* Property type: any
*/
get eventTooltipTemplate(): any;
set eventTooltipTemplate(value: any);
/** 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.
* Property type: any
*/
get cellTemplate(): any;
set cellTemplate(value: any);
/** Determines the currently visible date for the Scheduler.
* Property type: string | Date
*/
get dateCurrent(): string | Date;
set dateCurrent(value: string | Date);
/** Sets the Schedulers's Data Export options.
* Property type: SchedulerDataExport
*/
get dataExport(): SchedulerDataExport;
set dataExport(value: SchedulerDataExport);
/** Determines the events that will be loaded inside the Timeline. Each event represents an object that should contain the following properties:
* Property type: SchedulerEvent[]
*/
get dataSource(): SchedulerEvent[];
set dataSource(value: SchedulerEvent[]);
/** 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.
* Property type: any
*/
get dateSelectorFormatFunction(): any;
set dateSelectorFormatFunction(value: any);
/** Determines the day format of the dates in the timeline.
* Property type: SchedulerDayFormat | string
*/
get dayFormat(): SchedulerDayFormat | string;
set dayFormat(value: SchedulerDayFormat | string);
/** Enables or disables the element.
* Property type: boolean
*/
get disabled(): boolean;
set disabled(value: boolean);
/** Disables auto scrolling of the timeline while dragging/resizing an event.
* Property type: boolean
*/
get disableAutoScroll(): boolean;
set disableAutoScroll(value: boolean);
/** Disables dragging of events.
* Property type: boolean
*/
get disableDrag(): boolean;
set disableDrag(value: boolean);
/** Disables dropping of events.
* Property type: boolean
*/
get disableDrop(): boolean;
set disableDrop(value: boolean);
/** Disables resizing of events.
* Property type: boolean
*/
get disableResize(): boolean;
set disableResize(value: boolean);
/** Disables the cell selection.
* Property type: boolean
*/
get disableSelection(): boolean;
set disableSelection(value: boolean);
/** Disables the window editor for the events.
* Property type: boolean
*/
get disableWindowEditor(): boolean;
set disableWindowEditor(value: boolean);
/** Disables the context menu of the events and cells.
* Property type: boolean
*/
get disableContextMenu(): boolean;
set disableContextMenu(value: boolean);
/** Disables the event menu that appears when an event/collector has been clicked.
* Property type: boolean
*/
get disableEventMenu(): boolean;
set disableEventMenu(value: boolean);
/** Disables the view menu that allows to select the current Scheduler view.
* Property type: boolean
*/
get disableViewMenu(): boolean;
set disableViewMenu(value: boolean);
/** Disables the date menu that allows to select the current Scheduler date.
* Property type: boolean
*/
get disableDateMenu(): boolean;
set disableDateMenu(value: boolean);
/** A callback that can be used to customize the drag feedback that appears when an event is dragged.
* Property type: any
*/
get dragFeedbackFormatFunction(): any;
set dragFeedbackFormatFunction(value: any);
/** Determines the offset for the drag feedback from the pointer.
* Property type: any
*/
get dragOffset(): any;
set dragOffset(value: any);
/** 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 ).
* Property type: any
*/
get filter(): any;
set filter(value: any);
/** Determines whether Scheduler's filtering is enabled or not.
* Property type: any
*/
get filterable(): any;
set filterable(value: any);
/** Determines the filter mode.
* Property type: FilterMode | string
*/
get filterMode(): FilterMode | string;
set filterMode(value: FilterMode | string);
/** A getter that returns an array of all Scheduler events.
* Property type: SchedulerEvent[]
*/
get events(): SchedulerEvent[];
set events(value: SchedulerEvent[]);
/** Determines the first day of week for the Scheduler. By default it's Sunday.
* Property type: number
*/
get firstDayOfWeek(): number;
set firstDayOfWeek(value: number);
/** 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..
* Property type: any
*/
get footerTemplate(): any;
set footerTemplate(value: any);
/** Determines whether the events will be grouped by date.
* Property type: boolean
*/
get groupByDate(): boolean;
set groupByDate(value: boolean);
/** Determines the grouping orientation.
* Property type: SchedulerGroupOrientation | string
*/
get groupOrientation(): SchedulerGroupOrientation | string;
set groupOrientation(value: SchedulerGroupOrientation | string);
/** 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.
* Property type: any
*/
get groupTemplate(): any;
set groupTemplate(value: any);
/** Determines the resources that the events are grouped by.
* Property type: any
*/
get groups(): any;
set groups(value: any);
/** Determines the end hour that will be displayed in 'day' and 'week' views.
* Property type: number
*/
get hourEnd(): number;
set hourEnd(value: number);
/** Determines the start hour that will be displayed in 'day' and 'week' views.
* Property type: number
*/
get hourStart(): number;
set hourStart(value: number);
/** Determines the formatting of hours inside the element.
* Property type: SchedulerHourFormat | string
*/
get hourFormat(): SchedulerHourFormat | string;
set hourFormat(value: SchedulerHourFormat | string);
/** 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..
* Property type: any
*/
get headerTemplate(): any;
set headerTemplate(value: any);
/** Determines the position of the Date selector inside the Header of the element.
* Property type: SchedulerHeaderDatePosition | string
*/
get headerDatePosition(): SchedulerHeaderDatePosition | string;
set headerDatePosition(value: SchedulerHeaderDatePosition | string);
/** Determines the styling of the Header navigation controls.
* Property type: SchedulerHeaderNavigationStyle | string
*/
get headerNavigationStyle(): SchedulerHeaderNavigationStyle | string;
set headerNavigationStyle(value: SchedulerHeaderNavigationStyle | string);
/** Determines the position of the view selector control inside the Header of the element.
* Property type: SchedulerHeaderViewPosition | string
*/
get headerViewPosition(): SchedulerHeaderViewPosition | string;
set headerViewPosition(value: SchedulerHeaderViewPosition | string);
/** Determines whether the 'All Day' container with the all day events is hidden or not.
* Property type: boolean
*/
get hideAllDay(): boolean;
set hideAllDay(value: boolean);
/** Determines whether the days set by 'nonworkingDays' property are hidden or not.
* Property type: boolean
*/
get hideNonworkingWeekdays(): boolean;
set hideNonworkingWeekdays(value: boolean);
/** 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.
* Property type: boolean
*/
get hideOtherMonthDays(): boolean;
set hideOtherMonthDays(value: boolean);
/** Determines whether the 'Today' button is hidden or not.
* Property type: boolean
*/
get hideTodayButton(): boolean;
set hideTodayButton(value: boolean);
/** Determines whether the checkable items in the view selection menu are hidden or not.
* Property type: boolean
*/
get hideViewMenuCheckableItems(): boolean;
set hideViewMenuCheckableItems(value: boolean);
/** Determines whether the weekend days are hidden or not.
* Property type: boolean
*/
get hideWeekend(): boolean;
set hideWeekend(value: boolean);
/** 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.
* Property type: SchedulerLegendLocation | string
*/
get legendLocation(): SchedulerLegendLocation | string;
set legendLocation(value: SchedulerLegendLocation | string);
/** Determines the position of the legend. By default it's positioned to the near side but setting it to 'far' will change that.
* Property type: SchedulerLegendPosition | string
*/
get legendPosition(): SchedulerLegendPosition | string;
set legendPosition(value: SchedulerLegendPosition | string);
/** Determines the layout of the legend items.
* Property type: SchedulerLegendLayout | string
*/
get legendLayout(): SchedulerLegendLayout | string;
set legendLayout(value: SchedulerLegendLayout | string);
/** Determines the number of items when the legend switches automatically from horizontal list to menu.
* Property type: number
*/
get legendLayoutMenuBreakpoint(): number;
set legendLayoutMenuBreakpoint(value: number);
/** 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.
* Property type: number
*/
get mouseWheelStep(): number;
set mouseWheelStep(value: number);
/** Determines weather or not horizontal scrollbar is shown.
* Property type: HorizontalScrollBarVisibility | string
*/
get horizontalScrollBarVisibility(): HorizontalScrollBarVisibility | string;
set horizontalScrollBarVisibility(value: HorizontalScrollBarVisibility | string);
/** Sets or gets the unlockKey which unlocks the product.
* Property type: string
*/
get unlockKey(): string;
set unlockKey(value: string);
/** Determines the language of the Scheduler.
* Property type: string
*/
get locale(): string;
set locale(value: string);
/** Detetmines the maximum view date for the Scheduler.
* Property type: string | Date
*/
get max(): string | Date;
set max(value: string | Date);
/** 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.
* Property type: number | null
*/
get maxEventsPerCell(): number | null;
set maxEventsPerCell(value: number | null);
/** Detetmines the minimum view date for the Scheduler.
* Property type: string | Date
*/
get min(): string | Date;
set min(value: string | Date);
/** Sets or gets an object specifying strings used in the element that can be localized. Used in conjunction with the property locale.
* Property type: any
*/
get messages(): any;
set messages(value: any);
/** Determines the minute formatting inside the Scheduler.
* Property type: MinuteFormat | string
*/
get minuteFormat(): MinuteFormat | string;
set minuteFormat(value: MinuteFormat | string);
/** Determines the month name formatting inside the Scheduler.
* Property type: MonthFormat | string
*/
get monthFormat(): MonthFormat | string;
set monthFormat(value: MonthFormat | string);
/** 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.
* Property type: any
*/
get nonworkingDays(): any;
set nonworkingDays(value: any);
/** 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.
* Property type: any
*/
get nonworkingHours(): any;
set nonworkingHours(value: any);
/** Determines the interval (in seconds) at which the element will check for notifications.
* Property type: number
*/
get notificationInterval(): number;
set notificationInterval(value: number);
/** Determines the visibility of the resize handles.
* Property type: ResizeHandlesVisibility | string
*/
get resizeHandlesVisibility(): ResizeHandlesVisibility | string;
set resizeHandlesVisibility(value: ResizeHandlesVisibility | string);
/** 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
* Property type: number
*/
get resizeInterval(): number;
set resizeInterval(value: number);
/** An array of resources that can be assigned to the events.
* Property type: SchedulerResource[]
*/
get resources(): SchedulerResource[];
set resources(value: SchedulerResource[]);
/** 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.
* Property type: any
*/
get restrictedDates(): any;
set restrictedDates(value: any);
/** Defines an array of hours that are not allowed to have events on. Events that overlap restricted Hours or start/end on them will not be displayed.
* Property type: any
*/
get restrictedHours(): any;
set restrictedHours(value: any);
/** Defines an array of dates and hours that are not allowed to have events on. Events that overlap restricted Hours or start/end on them will not be displayed. Each array item is an Object and requires 2 fields - date and hours. For example: { date: new Date(2023, 10, 1), hours: [[0, 6], 12, [20, 23]] }. The hours define a range of restricted hours similartly to the restricted hours property, the date defines a date where the restricted hours will be applied.
* Property type: any
*/
get restricted(): any;
set restricted(value: any);
/** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
* Property type: boolean
*/
get rightToLeft(): boolean;
set rightToLeft(value: boolean);
/** Determines the position of the date navigation navigation buttons inside the header of the element.
* Property type: SchedulerScrollButtonsPosition | string
*/
get scrollButtonsPosition(): SchedulerScrollButtonsPosition | string;
set scrollButtonsPosition(value: SchedulerScrollButtonsPosition | string);
/** Enables/Disables the current time shader. If enabled all cells that represent past time will be shaded.
* Property type: boolean
*/
get shadeUntilCurrentTime(): boolean;
set shadeUntilCurrentTime(value: boolean);
/** Determines whether the resource legend is visible or not. The Legend shows the resources and their items in the footer section of the Scheduler. If filterable is enabled it is possible to filter by resource items by clicking on the corresponding resource item from the legend.
* Property type: boolean
*/
get showLegend(): boolean;
set showLegend(value: boolean);
/** Determines the name of the resource data item property that will be used for sorting the resource data defined as the resource.dataSource.
* Property type: string
*/
get sortBy(): string;
set sortBy(value: string);
/** Allows to define a custom sorting function that will be used to sort the resource data. The sortFunction is used when sortOrder is set to custom.
* Property type: any
*/
get sortFunction(): any;
set sortFunction(value: any);
/** Determines the sorting order of the resource data items. When set to custom, a custom sorting function has to be defined for the sortFunction property. The asc stands for 'ascending' while desc means 'descending' sorting order.
* Property type: SchedulerSortOrder | string
*/
get sortOrder(): SchedulerSortOrder | string;
set sortOrder(value: SchedulerSortOrder | string);
/** Determines the repeating delay of the repeat buttons inside the header of the element. Such buttons are the Date navigation buttons and the view scroll buttons.
* Property type: number
*/
get spinButtonsDelay(): number;
set spinButtonsDelay(value: number);
/** Determines the initial delay of the repeat buttons inside the header of the element. Such buttons are the Date navigation buttons and the view scroll buttons.
* Property type: number
*/
get spinButtonsInitialDelay(): number;
set spinButtonsInitialDelay(value: number);
/** Defines the statuses that will be available for selection thourgh the window editor for the events.
* Property type: SchedulerStatuse[]
*/
get statuses(): SchedulerStatuse[];
set statuses(value: SchedulerStatuse[]);
/** Sets or gets the element's visual theme.
* Property type: string
*/
get theme(): string;
set theme(value: string);
/** A format function for the Header of the Timeline. Allows to modify the date labels in the header cells.
* Property type: any
*/
get timelineHeaderFormatFunction(): any;
set timelineHeaderFormatFunction(value: any);
/** Determines the date scale for the timeline cells.
* Property type: SchedulerTimelineDayScale | string
*/
get timelineDayScale(): SchedulerTimelineDayScale | string;
set timelineDayScale(value: SchedulerTimelineDayScale | string);
/** Enables/Disables the tick marks next to the time cells in the vertical header of the element. Time header appears in 'day' and 'week' views.
* Property type: boolean
*/
get timeRulerTicks(): boolean;
set timeRulerTicks(value: boolean);
/** Determines the timeZone for the element. By default if the local time zone is used if the property is not set.
* Property type: SchedulerTimeZone | string
*/
get timeZone(): SchedulerTimeZone | string;
set timeZone(value: SchedulerTimeZone | string);
/** Allows to display additional timeZones at once along with the default that is set via the timeZone property. Accepts an array values that represent the ids of valid time zones. The possbile time zones can be viewed in the timeZone property description. By default the local time zone is displayed.
* Property type: any
*/
get timeZones(): any;
set timeZones(value: any);
/** Determines the delay ( in miliseconds) before the tooltip/menu appears.
* Property type: number
*/
get tooltipDelay(): number;
set tooltipDelay(value: number);
/** Determines the offset ot the tooltip/menu.
* Property type: number[]
*/
get tooltipOffset(): number[];
set tooltipOffset(value: number[]);
/** Determines weather or not vertical scrollbar is shown.
* Property type: VerticalScrollBarVisibility | string
*/
get verticalScrollBarVisibility(): VerticalScrollBarVisibility | string;
set verticalScrollBarVisibility(value: VerticalScrollBarVisibility | string);
/** Determines the current view. The property accepts view values that are defined in the views property. Custom views should contain a valid value that will be set as the current view.
* Property type: string
*/
get view(): string;
set view(value: string);
/** Indicates the current Scheduler viewType. Custom views must contain a valid type property that corresponds to one of the view types. This property should not be set.
* Property type: SchedulerViewType | string
*/
get viewType(): SchedulerViewType | string;
set viewType(value: SchedulerViewType | string);
/** Determines the viewing date range of the timeline. The property should be set to an array of strings or view objects. When you set it to a string, you should use any of the following: 'day', 'week', 'month', 'agenda', 'timelineDay', 'timelineWeek', 'timelineMonth'. Custom views can be defined as objects instead of strings. The view object should contain the following properties: label - the label for the view.value - the value for the view. The value is the unique identifier for the view.type - the type of view. The type should be one of the default allowed values for a view.hideWeekend - an Optional property that allows to hide the weekend only for this specific view.hideNonworkingWeekdays - an Optional property that allows to hide the nonwrking weekdays for this specific view.shortcutKey - an Optional property that allows to set a custom shortcut key for the view.hideHours - an Optional property applicable only to timelineWeek view that allows to hide the hour cells and only show the day cells.
* Property type: SchedulerViews | string
*/
get views(): SchedulerViews | string;
set views(value: SchedulerViews | string);
/** Determines type of the view selector located in the header of the element.
* Property type: SchedulerViewSelectorType | string
*/
get viewSelectorType(): SchedulerViewSelectorType | string;
set viewSelectorType(value: SchedulerViewSelectorType | string);
/** Determines the Start Date rule. The Week and TimelineWeek views start by default from the current date taking into account the firstDayOfWeek property. When this property is set to 'dateCurrent', these views will start from the value of the 'dateCurrent'.
* Property type: SchedulerViewStartDay | string
*/
get viewStartDay(): SchedulerViewStartDay | string;
set viewStartDay(value: SchedulerViewStartDay | string);
/** Determines the format of the week days inside the element.
* Property type: WeekDayFormat | string
*/
get weekdayFormat(): WeekDayFormat | string;
set weekdayFormat(value: WeekDayFormat | string);
/** Determines the format of the dates inside the timeline header when they represent years.
* Property type: YearFormat | string
*/
get yearFormat(): YearFormat | string;
set yearFormat(value: YearFormat | string);
/** Sets or gets if the element can be focused.
* Property type: boolean
*/
get unfocusable(): boolean;
set unfocusable(value: boolean);
/** Determines the maximum number of redo/undo steps that will be remembered by the Scheduler. When the number is reached the oldest records are removed in order to add new.
* Property type: number
*/
get undoRedoSteps(): number;
set undoRedoSteps(value: number);
/** A function that can be used to completly customize the popup Window that is used to edit events. The function has the following arguments: target - the target popup Window that is about to be opened.type - the type of the window. The type determines the purpose of the window. The default type is an empty string which means that it's the default event editing window. The other type is 'confirm' ( confirmation window) that appears when clicking on a repeating event. eventObj - the event object that is going to be edited.
* Property type: any
*/
get windowCustomizationFunction(): any;
set windowCustomizationFunction(value: any);
get properties(): string[];
/** This event is triggered when a batch update was started after executing the beginUpdate method.
* @param event. The custom event. */
onBeginUpdate?: ((event?: Event) => void) | undefined;
/** This event is triggered when a batch update was ended from after executing the endUpdate method.
* @param event. The custom event. */
onEndUpdate?: ((event?: Event) => void) | undefined;
/** 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.
*/
onChange?: ((event?: Event) => void) | undefined;
/** 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.
*/
onItemChange?: ((event?: Event) => void) | undefined;
/** 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').
*/
onItemChanging?: ((event?: Event) => void) | undefined;
/** 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.
*/
onItemClick?: ((event?: Event) => void) | undefined;
/** 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.
*/
onItemInsert?: ((event?: Event) => void) | undefined;
/** 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.
*/
onItemRemove?: ((event?: Event) => void) | undefined;
/** 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.
*/
onItemUpdate?: ((event?: Event) => void) | undefined;
/** 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.
*/
onViewChange?: ((event?: Event) => void) | undefined;
/** 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.
*/
onViewChanging?: ((event?: Event) => void) | undefined;
/** 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.
*/
onEventShortcutKey?: ((event?: Event) => void) | undefined;
/** 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.
*/
onDateChange?: ((event?: Event) => void) | undefined;
/** 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.
*/
onDragStart?: ((event?: Event) => void) | undefined;
/** 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.
*/
onDragEnd?: ((event?: Event) => void) | undefined;
/** 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.
*/
onDropoverCell?: ((event?: Event) => void) | undefined;
/** 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.
*/
onResizeStart?: ((event?: Event) => void) | undefined;
/** 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.
*/
onResizeEnd?: ((event?: Event) => void) | undefined;
/** 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.
*/
onEditDialogOpening?: ((event?: Event) => void) | undefined;
/** 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.
*/
onEditDialogOpen?: ((event?: Event) => void) | undefined;
/** 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.
*/
onEditDialogClose?: ((event?: Event) => void) | undefined;
/** 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.
*/
onEditDialogClosing?: ((event?: Event) => void) | undefined;
/** 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.
*/
onContextMenuOpening?: ((event?: Event) => void) | undefined;
/** 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.
*/
onContextMenuOpen?: ((event?: Event) => void) | undefined;
/** 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.
*/
onContextMenuClose?: ((event?: Event) => void) | undefined;
/** 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.
*/
onContextMenuClosing?: ((event?: Event) => void) | undefined;
/** 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.
*/
onEventMenuOpening?: ((event?: Event) => void) | undefined;
/** This event is triggered when the event menu is opened.
*