JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 780
  • Score
    100M100P100Q104331F
  • License MIT

Angular 2 Material Design Lite - Popover Component

Package Exports

  • @angular-mdl/popover

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@angular-mdl/popover) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Popover

Installing

npm i --save @angular-mdl/popover

import { MdlPopoverModule } from '@angular-mdl/popover';

If you need to support IE11 please add https://www.npmjs.com/package/custom-event-polyfill to your polyfills.

Usage example

<button
    mdl-button
    (click)="myPopover.toggle($event)"
    mdl-button-type="icon"
    mdl-ripple>
  <mdl-icon>more_vert</mdl-icon>
</button>

<mdl-popover #myPopover [style.width.px]="300">
  <div mdl-shadow="6" style="padding: 1rem;">
    <b>This is example popover</b> you can put any HTML content here.
  </div>
</mdl-popover>

API Summary

mdl-popover

Name Type Description
[hide-on-click] boolean Hide popover on clicking inside it, default false
[style.*] ... Styling i.e. [style.width.px]="300"