Resizable

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

Included in: dx.web.js, dx.viz-web.js, dx.all.js
Module: ui/resizable
Export: default
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.

resetOption(optionName)

Resets an option to its default value.

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