SchedulerViewItem
Represents the Kendo UI for Vue SchedulerViewItem component. Use it in a custom view item template to change the view-specific layout of a Scheduler event, such as its size and position (see example).
Definition
Package:@progress/kendo-vue-scheduler
Properties Interface:SchedulerViewItemProps
Syntax:
<SchedulerViewItem v-bind="props" :item-style="{ height: 'auto' }" />
Properties
className?
string
Sets a CSS class on the wrapping element of the SchedulerItem.
The SchedulerItem applies the following default classes:
k-eventk-selected- ifselectedistruek-event-drag-hint- ifdragHintistruek-scheduler-marquee- ifresizeHintistruek-marquee: ifresizeHintistruek-first: ifresizeHintistrueandtailisfalsek-last: ifresizeHintistrueandheadisfalse
dataItem
any
Represents the original DataItem from which the item was created.
For more information about the data collection, refer to the Scheduler Data Binding article.
description
string
The description of the item.
dragHint?
boolean
Specifies if the SchedulerItem acts as a drag hint.
editable?
boolean | EditableProp
Overrides the editable prop of the Scheduler and the active view.
end
Date
The end date of the item.
endTimezone
string
The timezone name for the end date.
format?
string
Sets the format in which the SchedulerItem shows the zonedStart and zonedEnd properties.
For more information, refer to the formatDate method of the IntlService.
head
boolean
Specifies if the end of the item is outside the current visible range.
id?
string
Sets the id of the wrapping element of the SchedulerItem.
isAllDay
boolean
Specifies if the item lasts the whole day.
isException
boolean
Specifies if the item is an exception to a recurrence rule.
isRecurring
boolean
Specifies if the item is a single occurrence of a recurring DataItem.
item?
any
Overrides the default component that shows a single item. Set it to a component or to the name of a slot template.
The default component is: SchedulerItem.
itemRef?
any
The ref of the actual item.
itemStyle?
any
Sets the style object of the wrapping element of the SchedulerItem.
The SchedulerItem applies the following default styles:
cursor:pointeruserSelect:none--kendo-scheduler-event-color: the color resolved from the matching entry inprops.group.resourceswhosecolorFieldis set (requires a Kendo theme that consumes this CSS variable; see https://github.com/telerik/kendo-themes/pull/6204)pointerEvents:none- ifprops.dragHintorprops.resizeHintis set totrue
onBlur?
(event: SchedulerItemFocusEvent) => void
Fires each time the element, or any of its child elements, loses focus.
onDoubleClick?
(event: SchedulerItemMouseEvent) => void
Fires each time you double-click the element or any of its child elements.
onKeyDown?
(event: SchedulerItemKeyboardEvent) => void
Fires each time a keydown event reaches the wrapping element.
onKeyPress?
(event: SchedulerItemKeyboardEvent) => void
Fires each time a keypress event reaches the wrapping element.
onKeyUp?
(event: SchedulerItemKeyboardEvent) => void
Fires each time a keyup event reaches the wrapping element.
onMouseDown?
(event: SchedulerItemMouseEvent) => void
Fires each time the element, or any of its child elements, receives a mousedown event.
onMouseEnter?
(event: SchedulerItemMouseEvent) => void
Fires each time the element, or any of its child elements, receives a mouseenter event.
onMouseLeave?
(event: SchedulerItemMouseEvent) => void
Fires each time the element, or any of its child elements, receives a mouseleave event.
onMouseOut?
(event: SchedulerItemMouseEvent) => void
Fires each time the element, or any of its child elements, receives a mouseout event.
onMouseOver?
(event: SchedulerItemMouseEvent) => void
Fires each time the element, or any of its child elements, receives a mouseover event.
onMouseUp?
(event: SchedulerItemMouseEvent) => void
Fires each time the element, or any of its child elements, receives a mouseup event.
onRemoveClick?
(event: SchedulerItemMouseEvent) => void
Fires when you click the delete icon.
The SchedulerItem shows the delete icon only when editable or editable.remove is true.
onResizeEndDrag?
(event: SchedulerItemDragEvent) => void
Fires each time you drag the resize handle of the item end.
The Resize feature of the SchedulerItem uses this event.
onResizePress?
(event: SchedulerItemDragEvent) => void
Fires each time any of the resize handles receives a press event.
The Resize feature of the SchedulerItem uses this event.
onResizeRelease?
(event: SchedulerItemDragEvent) => void
Fires when you release the dragged resize handle.
The Resize feature of the SchedulerItem uses this event.
onResizeStartDrag?
(event: SchedulerItemDragEvent) => void
Fires each time you drag the resize handle of the item start.
The Resize feature of the SchedulerItem uses this event.
order
number
The order of the item among its siblings.
originalStart
Date
Represents the original start of the item.
This property is being used when only a single occurrence of a recurring item is being edited.
range
Range
The range in which the Scheduler shows the item.
readonly?
boolean
Specifies if the event is read-only. When true, the SchedulerItem applies the k-readonly CSS class and sets aria-disabled to true.
resizeHint?
boolean
Specifies if the SchedulerItem acts as a resize hint.
selected?
boolean
Sets the selected state of the SchedulerItem. When selected is true, the SchedulerItem adds the k-selected class by default.
slots
Slot[]
The collection of all slots in which the item fits.
start
Date
The start date of the item.
startTimezone
string
The timezone name for the start date.
tabIndex?
number
Sets the tabIndex attribute of the wrapping element of the SchedulerItem.
When you set it to null, the SchedulerItem does not apply a tabIndex to the element.
tail
boolean
Specifies if the start of the item is outside the current visible range.
title
string
The title of the item.
vertical?
boolean
Specifies if the SchedulerItem uses vertical orientation.
zonedEnd
ZonedDate
The end date in the provided timezone.
For more information about timezones, refer to the Scheduler Timezones article.
zonedStart
ZonedDate
The start date in the provided timezone.
For more information about timezones, refer to the Scheduler Timezones article.