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

Common

disabledInstancePlugin
listenersEvents

Misc

clientInstancePlugin
localeClassLocalizable
localizableLocalizable

Other

bottomHandleEventResize
dragThresholdEventResize
leftHandleEventResize
lockLayoutEventResize
reservedSpaceEventResize
resizeSelectedEventResize
rightHandleEventResize
showTooltipEventResize
tipEventResize
tooltipTemplateEventResize
topHandleEventResize
validatorFnEventResize

Properties

17

Common

disabledInstancePlugin

Class hierarchy

isEventResize: Boolean= truereadonly
Identifies an object as an instance of EventResize class, or subclass thereof.
isEventResize: Boolean= truereadonlystatic
Identifies an object as an instance of EventResize class, or subclass thereof.
isEventsEvents
isInstancePluginInstancePlugin
isLocalizableLocalizable

Lifecycle

configBase

Misc

clientInstancePlugin
localeHelperLocalizable
localeManagerLocalizable

Other

isResizingEventResize
tipEventResize

Functions

28

Configuration

applyDefaultsstaticBase

Events

Lifecycle

destroystaticBase

Misc

doDisableInstancePlugin
initClassstaticBase
isOfTypeNamestaticBase
mixinstaticBase
optionalLstaticLocalizable

Other

LstaticLocalizable
onEvents
relayAllEvents
triggerEvents
unEvents

Events

10
catchAllEvents
destroyEvents
disableInstancePlugin
enableInstancePlugin
eventResizeEndEventResize
eventResizeStartEventResize

Event handlers

10
onDestroyEvents
onDisableInstancePlugin
onEnableInstancePlugin
onEventResizeEndEventResize

Typedefs

2

CSS variables

10

Inherited