RowResize
Enables user to change row height by dragging the bottom row border. After a resize operation, the rowHeight
field of the record is updated (when applyToAllRows is false) and the eventLayout of the dragged resource
row will be switched to pack as a result (only applies when stack is used by default).
barMargin and resourceMargin will also be shrunk as you reduce the height of a row.
Try hovering the bottom row border in the scheduler below and use drag-drop to change the row height.
Row resize
//<code-header>
fiddle.title = 'Row resize';
//</code-header>
const scheduler = new Scheduler({
appendTo : targetElement,
// makes scheduler as high as it needs to be to fit rows
autoHeight : true,
startDate : new Date(2023, 4, 7),
endDate : new Date(2023, 4, 14),
eventStyle : 'border',
features : {
rowResize : true
},
columns : [
{ field : 'name', text : 'Name', width : 100 }
],
resources : [
{ id : 1, name : 'Bernard' },
{ id : 2, name : 'Bianca' },
{ id : 3, name : 'John' },
{ id : 4, name : 'Rob' }
],
events : [
{ id : 1, resourceId : 1, name : 'Event', startDate : '2023-05-08', endDate : '2023-05-10' },
{ id : 2, resourceId : 2, name : 'Meeting', startDate : '2023-05-12', endDate : '2023-05-13' },
{ id : 3, resourceId : 2, name : 'Booking', startDate : '2023-05-09', endDate : '2023-05-11', eventColor : 'blue' },
{ id : 4, resourceId : 3, name : 'Overlapping', startDate : '2023-05-08', endDate : '2023-05-10' },
{ id : 5, resourceId : 3, name : 'Overlapping', startDate : '2023-05-09', endDate : '2023-05-11' }
]
});This feature is disabled by default. For info on enabling it, see GridFeatures.
Configs
13
Configs
13Misc
bubbleEventsEvents
callOnFunctionsEvents
clientInstancePlugin
localeClassLocalizable
localizableLocalizable
localizablePropertiesLocalizable
Properties
18
Properties
18Common
disabledInstancePlugin
Class hierarchy
Identifies an object as an instance of RowResize class, or subclass thereof.
Identifies an object as an instance of RowResize 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
5
Events
5Event handlers
5
Event handlers
5Typedefs
1
Typedefs
1BryntumListenerConfigEvents