All docs
V19.1
24.1
The page you are viewing does not exist in version 24.1.
23.2
The page you are viewing does not exist in version 23.2.
23.1
The page you are viewing does not exist in version 23.1.
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
19.1
18.2
18.1
17.2
A newer version of this page is available. Switch to the current version.

jQuery Resizable API

The Resizable widget enables its content to be resizable in the UI.

import Resizable from "devextreme/ui/resizable"
Type:

Object

Read Guides

See Also

Configuration

An object defining configuration options for the Resizable widget.

Name Description
elementAttr

Specifies the attributes to be attached to the widget's root element.

handles

Specifies which borders of the widget element are used as a handle.

height

Specifies the widget's height.

maxHeight

Specifies the upper height boundary for resizing.

maxWidth

Specifies the upper width boundary for resizing.

minHeight

Specifies the lower height boundary for resizing.

minWidth

Specifies the lower width boundary for resizing.

onDisposing

A function that is executed before the widget is disposed of.

onInitialized

A function used in JavaScript frameworks to save the widget instance.

onOptionChanged

A function that is executed after a widget option is changed.

onResize

A function that is executed each time the widget is resized by one pixel.

onResizeEnd

A function that is executed when resizing ends.

onResizeStart

A function that is executed when resizing starts.

rtlEnabled

Switches the widget to a right-to-left representation.

width

Specifies the widget's width.

See Also

Methods

Methods of the DomComponent object.

Name Description
beginUpdate()

Prevents the widget from refreshing until the endUpdate() method is called.

defaultOptions(rule)

Specifies the device-dependent default configuration options for this component.

dispose()

Disposes of all the resources allocated to the Resizable instance.

element()

Gets the root widget element.

endUpdate()

Refreshes the widget after a call of the beginUpdate() method.

getInstance(element)

Gets the instance of a widget found using its DOM node.

instance()

Gets the widget's instance. Use it to access other methods of the widget.

off(eventName)

Detaches all event handlers from a single event.

off(eventName, eventHandler)

Detaches a particular event handler from a single event.

on(eventName, eventHandler)

Subscribes to an event.

on(events)

Subscribes to events.

option()

Gets all widget options.

option(optionName)

Gets the value of a single option.

option(optionName, optionValue)

Updates the value of a single option.

option(options)

Updates the values of several options.

Events

This section describes events fired by this widget.

Name Description
disposing

Raised before the widget is disposed of.

initialized

Raised only once, after the widget is initialized.

optionChanged

Raised after a widget option is changed.

resize

Raised each time the widget is resized by one pixel.

resizeEnd

Raised when resizing ends.

resizeStart

Raised when resizing starts.

See Also