The resizable configuration object allows you to control how items within the grid can be resized. You can enable/disable resizing, define which edges/handles are available, set a delay for touch interactions, and hook into the start and stop events of a resize operation.
Key features:
resizable.enabled: Toggles the ability to resize items.resizable.handles: Defines which sides or corners of an item can be used to trigger a resize (e.g., s for south, ne for north-east).resizable.stop: A callback function triggered when resizing ends. If this function returns a Promise, the resize can be cancelled or approved based on the promise resolution.resizable.delayStart: Useful for touch devices to prevent accidental resizing while scrolling.
| Option | Description | Type | Default |
| -------------------- | ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| resizable.delayStart | milliseconds to delay the start of resize, useful for touch interaction | Number | 0 |
| resizable.enabled | enable/disable resizable items | Boolean | false |
| resizable.stop | callback when resizing an item stops. Accepts Promise return to cancel/approve resize | Function(item, gridsterItem, event) | undefined |
| resizable.start | callback when resizing an item starts | Function(item, gridsterItem, event) | undefined |
| resizable.handles | resizable edges of an item | Object | {s: true, e: true, n: true, w: true, se: true, ne:true, sw: true, nw: true} |