Angular Popover - Resize and Relocate

To change the size of the Popover, specify the height and width properties.

HTML
TypeScript
  • <img id="image" src="https://url/to/an/image" />
  • <dx-popover
  • target="#image"
  • showEvent="dxhoverstart"
  • hideEvent="dxhoverend"
  • [height]="300"
  • [width]="500">
  • <div *dxTemplate="let data of 'content'">
  • <p>Popover content</p>
  • </div>
  • </dx-popover>
  • import { DxPopoverModule } from "devextreme-angular";
  • // ...
  • export class AppComponent {
  • // ...
  • }
  • @NgModule({
  • imports: [
  • // ...
  • DxPopoverModule
  • ],
  • // ...
  • })

If you need to position the Popover against a certain side of the target element, set the position property.

HTML
TypeScript
  • <img id="image" src="https://url/to/an/image" />
  • <dx-popover
  • target="#image"
  • showEvent="dxhoverstart"
  • hideEvent="dxhoverend"
  • position="top"> <!-- or "bottom" | "left" | "right" -->
  • <div *dxTemplate="let data of 'content'">
  • <p>Popover content</p>
  • </div>
  • </dx-popover>
  • import { DxPopoverModule } from "devextreme-angular";
  • // ...
  • export class AppComponent {
  • // ...
  • }
  • @NgModule({
  • imports: [
  • // ...
  • DxPopoverModule
  • ],
  • // ...
  • })
See Also