Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 434 Bytes

Readme.md

File metadata and controls

35 lines (20 loc) · 434 Bytes

popout

Component to show an element popped out.

Installation

Install with component(1):

$ component install mikanda/popout

Usage

var popout = require('popout');

var div = document.querySelector('#my-element');
var p = popout(div);
...
p.close();

API

Popout(content : DOMElement)

Pop out content.

Popout#close()

Close the popout.

License

MIT