Popup

A widget that displays required content in a popup window.

Included in: dx.phonejs.js, dx.webappjs.js, dx.all.js

The dxPopup widget is a window overlaying the current view. It displays data located inside the HTML element representing the widget. The widget can have a title, and can be shown in full-screen mode. Specify the title text using the title option, and assign true to the showTitle option to display the window title. The full-screen mode's availability is specified by the fullScreen option.

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

  • jQuery
    Use the dxPopup jQuery plug-in.

    HTML
    <div id="popup"></div>
    JavaScript
    $("#popup").dxPopup({
        showTitle: true,
        title: 'Popup title'
    });
  • Knockout
    Add a div element and apply the dxPopup binding to this element.

    HTML
    <div data-bind="dxPopup: {
        showTitle: true,
        title: 'Popup title'
    }"></div>
  • Angular
    Add a div element and apply the dx-popup directive to this element.

    HTML
    <div dx-popup="{
        showTitle: true,
        title: 'Popup title'
    }"></div>

Note that DevExtreme widgets require you to link the jQuery and Globalize libraries to your application. If you use the Knockout or Angular approach, the Knockout or Angular library is also required.

See Also

You can find detailed information on the principles of working with the widget in the dxPopup section of the Overlay Widgets article.

View Demo

Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the dxPopup widget.

Methods

This section describes methods used to manipulate the widget.

Events

This section describes events exposed by this widget.