popover-component
Popover component
Last updated 5 years ago by pirxpilot .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install popover-component 
SYNC missed versions from official npm registry.

Popover

Popover component built on top of Tip.

js popover component

Installation

$ npm install popover-component

Features

  • events for composition
  • "auto" positioning
  • fluent API
  • minimal base styling

API

new Popover(content, [title])

Create a new popover with content being either a string, html, or element, and optional title which may contain html or be an element as well.

var Popover = require('popover');
var popover = new Popover('You have mail!!!', 'Mail');
popover.show('#avatar');

View Tip for additional API documentation.

Themes

License

MIT

Current Tags

  • 1.1.1                                ...           latest (5 years ago)

5 Versions

  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 0.0.1                                ...           8 years ago

Copyright 2014 - 2016 © taobao.org |