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

Overlay

Page overlay component.

Installation

$ component install component/overlay

API

overlay([options|element])

Returns a new Overlay.

Options:

  • closable: whether or not a user may click the overlay to close [false]
  • target: target element to overlay [body]

Overlay#show()

Show the overlay.

Overlay#hide()

Hide the overlay.

Events

  • show when the overlay is shown
  • hide when the overlay is hidden
  • close when the overlay is removed (follows hide normally)

License

MIT

Current Tags

  • 0.3.5                                ...           latest (5 years ago)

8 Versions

  • 0.3.5                                ...           5 years ago
  • 0.3.4                                ...           5 years ago
  • 0.3.3                                ...           6 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.4                                ...           8 years ago
  • 0.0.3                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           9 years ago

Copyright 2014 - 2017 © taobao.org |