Popover

The Popover is a widget that shows notifications within a box with an arrow pointing to a specified UI element.

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

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

  • jQuery

    HTML
    <div id="targetElement"></div>
    <div id="popover">
        <p>Popover content</p>
    </div>
    JavaScript
    $(function () {
        $("#popover").dxPopover({
            target: "#targetElement",
            showEvent: 'dxhoverstart',
            hideEvent: 'dxhoverend'
        });
    });
  • AngularJS

    HTML
    <div id="targetElement"></div>
    <div dx-popover="{
        target: '#targetElement',
        showEvent: 'dxhoverstart',
        hideEvent: 'dxhoverend'
    }">
        <p>Popover content</p>
    </div>
  • Knockout

    HTML
    <div id="targetElement"></div>
    <div data-bind="dxPopover: {
        target: '#targetElement',
        showEvent: 'dxhoverstart',
        hideEvent: 'dxhoverend'
    }">
        <p>Popover content</p>
    </div>
  • ASP.NET MVC Wrappers

    @(Html.DevExtreme().Popover()
        .ID("popover")
        .Target("#targetElement")
        .ShowEvent("dxhoverstart")
        .HideEvent("dxhoverend"),
        .ContentTemplate(@<text>
            <p>Popover content</p>
        </text>)
    )
    <div id="targetElement"></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.

View Demo Watch Video

See Also
Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the Popover widget.

Methods

This section describes members used to manipulate the widget.

Events

This section describes events fired by this widget.