Skip to content

.resizable ​

Allow rectangles to be resized.

Examples ​

js
const options = {
    x: false
};
myComponent.resizable(options);

The size can be bounded with the constrain option (applied to the bottom-right corner):

js
myComponent.resizable({
    constrain: [[20, 20], [400, 300]], // min and max size
});
NameTypeDefaultComment
xBooleantrueCan be resized horizontally
yBooleantrueCan be resized vertically
constrainVectornullLimits of the bottom-right corner
handleComponentgold triangleDraggable shape used as handle

Released under the MIT License.