Resizable

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

Included in: dx.mobile.js, dx.web.js, dx.viz-web.js, dx.all.js
Module: ui/resizable
Export: default

The Resizable widget is an element that can be resized by an end user. It displays data located inside the HTML element of the widget. You can specify minimum and maximum size using the minHeight, minWidth, maxHeight and maxWidth options. The handles option enables you to specify which element borders are used as a handle for resizing.

You can create the widget using one of the following approaches.

  • jQuery

    HTML
    <div id="resizable">
        <div id="content"></div>
    </div>
    CSS
    #content {
        height: 100%;
        width: 100%
    }
    JavaScript
    $(function() {
        $("#resizable").dxResizable({
            width: 200,
            height: 200,
            minWidth: 30,
            minHeight: 30,
            maxWidth: 500,
            maxHeight: 500 
        });
    });
  • AngularJS

    HTML
    <div dx-resizable="{
        width: 200,
        height: 200,
        minWidth: 30,
        minHeight: 30,
        maxWidth: 500,
        maxHeight: 500 
    }">
        <div id="content"></div>
    </div>
  • Knockout

    HTML
    <div data-bind="dxResizable: {
        width: 200,
        height: 200,
        minWidth: 30,
        minHeight: 30,
        maxWidth: 500,
        maxHeight: 500 
    }">
        <div id="content"></div>
    </div>

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the topics in the Installation section.

See Also
Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the Resizable widget.

Methods

Methods of the DomComponent object.

Events

This section describes events fired by this widget.