EventResize
Feature that allows resizing an event by dragging its start or end.
Event resize
//<code-header>
fiddle.title = 'Event resize';
//</code-header>
targetElement.innerHTML = '<p>Grab either end of an event and drag to resize it:</p>';
const schedulerPro = new SchedulerPro({
appendTo : targetElement,
// makes scheduler as high as it needs to be to fit rows
autoHeight : true,
startDate : new Date(2018, 4, 6),
endDate : new Date(2018, 4, 13),
columns : [
{ field : 'name', text : 'Name', width : 100 }
],
project : {
resources : [
{ id : 1, name : 'Bernard' },
{ id : 2, name : 'Bianca' }
],
events : [
{ id : 1, resourceId : 1, name : 'Resize me', startDate : '2018-05-07', endDate : '2018-05-10' },
{ id : 2, resourceId : 2, name : 'Not me', startDate : '2018-05-08', endDate : '2018-05-10', resizable : false, eventColor : 'red' }
],
calendars : [
{
id : 'general',
name : 'General',
intervals : [
{
recurrentStartDate : 'on Sat',
recurrentEndDate : 'on Mon',
isWorking : false
}
]
}
],
calendar : 'general'
}
});By default, it displays a tooltip with the new start and end dates, formatted using displayDateFormat.
This feature is enabled by default
Configs
26
Configs
26Misc
bubbleEventsEvents
callOnFunctionsEvents
clientInstancePlugin
localeClassLocalizable
localizableLocalizable
localizablePropertiesLocalizable
Other
allowResizeToZeroEventResize
bottomHandleEventResize
dragThresholdEventResize
dragTouchStartDelayEventResize
dynamicHandleSizeEventResize
leftHandleEventResize
lockLayoutEventResize
reservedSpaceEventResize
resizeSelectedEventResize
rightHandleEventResize
showExactResizePositionEventResize
showTooltipEventResize
tipEventResize
tooltipTemplateEventResize
topHandleEventResize
validatorFnEventResize
validatorFnThisObjEventResize
Properties
17
Properties
17Common
disabledInstancePlugin
Class hierarchy
Identifies an object as an instance of EventResize class, or subclass thereof.
Identifies an object as an instance of EventResize class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable
Functions
28
Functions
28Configuration
Events
detachListenersBase
Misc
animatePropertyBase
callbackBase
doDisableInstancePlugin
downloadTestCaseBase
resolveCallbackBase
updateLocalizationLocalizable
Other
addListenerEvents
hasListenerEvents
onEvents
relayAllEvents
removeAllListenersEvents
removeListenerEvents
resumeEventsEvents
suspendEventsEvents
triggerEvents
unEvents
Events
10
Events
10beforeDestroyEvents
beforeEventResizeEventResize
beforeEventResizeFinalizeEventResize
catchAllEvents
destroyEvents
disableInstancePlugin
enableInstancePlugin
eventPartialResizeEventResize
eventResizeEndEventResize
eventResizeStartEventResize
Event handlers
10
Event handlers
10onBeforeDestroyEvents
onBeforeEventResizeEventResize
onBeforeEventResizeFinalizeEventResize
onCatchAllEvents
onDestroyEvents
onDisableInstancePlugin
onEnableInstancePlugin
onEventPartialResizeEventResize
onEventResizeEndEventResize
onEventResizeStartEventResize
Typedefs
2
Typedefs
2BryntumListenerConfigEvents
EventResizeDataEventResize