Your search did not match any results.



The Popover is a UI component that shows notifications within a box with an arrow pointing to a specified UI element. In this demo, the Popover appears when you pause on the «details» label or click the «more» link.

Copy to CodeSandBox
<div class="dx-fieldset form"> <div class="dx-field"> <div class="dx-field-label">Default mode</div> <div class="dx-field-value-static"> <p> <span id="subject1">Google AdWords Strategy</span> (<a id="link1" (mouseenter)="toggleDefault()" (mouseleave)="toggleDefault()">details</a>) </p> <dx-popover target="#link1" position="top" [width]="300" [(visible)]="defaultVisible"> <div *dxTemplate="let data = model of 'content'"> Make final decision on whether we are going to increase our Google AdWord spend based on our 2013 marketing plan. </div> </dx-popover> </div> </div> <div class="dx-field"> <div class="dx-field-label">With title</div> <div class="dx-field-value-static"> <p> <span id="subject2"> Rollout of New Website and Marketing Brochures </span> (<a id="link2" (mouseenter)="toggleWithTitle()" (mouseleave)="toggleWithTitle()">details</a>) </p> <dx-popover target="#link2" position="bottom" [width]="300" [showTitle]="true" title="Details:" [(visible)]="withTitleVisible"> <div *dxTemplate="let data = model of 'content'"> The designs for new brochures and website have been approved. Launch date is set for Feb 28. </div> </dx-popover> </div> </div> <div class="dx-field"> <div class="dx-field-label">With animation</div> <div class="dx-field-value-static"> <p> <span id="subject3"> Create 2012 Sales Report </span> (<a id="link3" (mouseenter)="toggleWithAnimationOptions()" (mouseleave)="toggleWithAnimationOptions()">details</a>) </p> <dx-popover target="#link3" position="top" [width]="300" [(visible)]="withAnimationOptionsVisible"> <dxo-animation> <dxo-show type="pop" [from]="{ scale: 0 }" [to]="{ scale: 1 }"></dxo-show> <dxo-hide type="fade" [from]="1" [to]="0"></dxo-hide> </dxo-animation> <div *dxTemplate="let data = model of 'content'"> 2012 Sales Report has to be completed so we can determine if major changes are required to sales strategy. </div> </dx-popover> </div> </div> <div class="dx-field"> <div class="dx-field-label">With overlay</div> <div class="dx-field-value-static"> <p> <span id="subject4">Website Re-Design Plan</span> (<a id="link4" (click)="toggleWithShadingOptions()">more</a>) </p> <dx-popover target="#link4" position="top" [width]="300" [shading]="true" shadingColor="rgba(0, 0, 0, 0.5)" [(visible)]="withShadingOptionsVisible"> <div *dxTemplate="let data of 'content'"> The changes in our brochure designs for 2013 require us to update key areas of our website. </div> </dx-popover> </div> </div> </div>
import { NgModule, Component, enableProdMode } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { DxPopoverModule, DxTemplateModule } from 'devextreme-angular'; if(!/localhost/.test( { enableProdMode(); } @Component({ selector: 'demo-app', templateUrl: 'app/app.component.html', styleUrls: ['app/app.component.css'] }) export class AppComponent { defaultVisible: boolean; withTitleVisible: boolean; withAnimationOptionsVisible: boolean; withShadingOptionsVisible: boolean; constructor() { this.defaultVisible = false; this.withTitleVisible = false; this.withAnimationOptionsVisible = false; this.withShadingOptionsVisible = false; } toggleDefault() { this.defaultVisible = !this.defaultVisible; } toggleWithTitle() { this.withTitleVisible = !this.withTitleVisible; } toggleWithAnimationOptions() { this.withAnimationOptionsVisible = !this.withAnimationOptionsVisible; } toggleWithShadingOptions() { this.withShadingOptionsVisible = !this.withShadingOptionsVisible; } } @NgModule({ imports: [ BrowserModule, DxPopoverModule, DxTemplateModule ], declarations: [AppComponent], bootstrap: [AppComponent] }) export class AppModule { } platformBrowserDynamic().bootstrapModule(AppModule);
::ng-deep .form a { cursor: pointer; white-space: nowrap; border-bottom: 1px dashed; text-decoration: none; } ::ng-deep .form p { margin: 0; } ::ng-deep #link4 { border-bottom-style: solid; }
// In real applications, you should not transpile code in the browser. You can see how to create your own application with Angular and DevExtreme here: // System.config({ transpiler: 'ts', typescriptOptions: { module: "system", emitDecoratorMetadata: true, experimentalDecorators: true }, meta: { 'typescript': { "exports": "ts" }, 'devextreme/localization.js': { "esModule": true } }, paths: { 'npm:': '' }, map: { 'ts': 'npm:plugin-typescript@8.0.0/lib/plugin.js', 'typescript': 'npm:typescript@3.5.3/lib/typescript.js', '@angular': 'npm:@angular', 'tslib': 'npm:tslib@2.1.0/tslib.js', 'rxjs': 'npm:rxjs@6.4.0', 'rrule': 'npm:rrule@2.6.6/dist/es5/rrule.js', 'luxon': 'npm:luxon@1.26.0/build/global/luxon.min.js', 'es6-object-assign': 'npm:es6-object-assign@1.1.0', 'devextreme': 'npm:devextreme@20.2.6', 'jszip': 'npm:jszip@3.6.0/dist/jszip.min.js', 'devextreme-quill': 'npm:devextreme-quill@0.10.3/dist/dx-quill.min.js', 'devexpress-diagram': 'npm:devexpress-diagram@2.0.18', 'devexpress-gantt': 'npm:devexpress-gantt@2.0.24', 'devextreme-angular': 'npm:devextreme-angular@20.2.6', 'preact': 'npm:preact@10.5.13/dist/preact.js', 'preact/hooks': 'npm:preact@10.5.13/hooks/dist/hooks.js' }, packages: { 'app': { main: './app.component.ts', defaultExtension: 'ts' }, 'devextreme': { defaultExtension: 'js' }, 'devextreme/events/utils': { main: 'index' }, 'devextreme/events': { main: 'index' }, 'es6-object-assign': { main: './index.js', defaultExtension: 'js' } }, packageConfigPaths: [ "npm:@angular/*/package.json", "npm:@angular/common/*/package.json", "npm:rxjs/package.json", "npm:rxjs/operators/package.json", "npm:devextreme-angular/*/package.json", "npm:devextreme-angular/ui/*/package.json", "npm:devextreme-angular/package.json", "npm:devexpress-diagram/package.json", "npm:devexpress-gantt/package.json", ] });
<!DOCTYPE html> <html xmlns=""> <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <link rel="stylesheet" type="text/css" href="" /> <link rel="stylesheet" type="text/css" href="" /> <script src=""></script> <script src=""></script> <script src=""></script> <script src=""></script> <script src="config.js"></script> <script> System.import('app').catch(console.error.bind(console)); </script> </head> <body class="dx-viewport"> <div class="demo-container"> <demo-app>Loading...</demo-app> </div> </body> </html>