Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

eltitlebar

1.4.0 • Public • Published

titlebar

Emulate window title bar.

npm install eltitlebar

Usage

Used with browserify or in a similar enviroment.

var titlebar = require('eltitlebar');
 
//if you only want close button set only property is true
//default is false
var t = titlebar({only:true});
t.appendTo(document.body);
 
t.on('close', function(e) {
    console.log('close');
});
 
// t.element exposes the root dom element
t.element.appendChild(document.createElement('div'));
 
// Clean up after usage
t.destroy();

Install

npm i eltitlebar

DownloadsWeekly Downloads

3

Version

1.4.0

License

ISC

Last publish

Collaborators

  • avatar