Vue Popover - Overview

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

View Demo

The following code creates a simple Popover on your page and attaches it to another element (in this example, to an image).

  • <template>
  • <div>
  • <img id="image" src="https://url/to/an/image" />
  • <DxPopover
  • target="#image"
  • show-event="dxhoverstart"
  • hide-event="dxhoverend">
  • <template>
  • <p>Popover content</p>
  • </template>
  • </DxPopover>
  • </div>
  • </template>
  •  
  • <script>
  • import 'devextreme/dist/css/dx.light.css';
  •  
  • import { DxPopover } from 'devextreme-vue/popover';
  •  
  • export default {
  • components: {
  • DxPopover
  • }
  • }
  • </script>

There are several ways to specify the content of the Popover. Learn more in the Customize the Content article. The Popover can also be displayed with a title and toolbars. For detailed information, see the Customize the Title and Specify Toolbar Items topics.

See Also