Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rlamana committed Apr 25, 2013
1 parent 042ab42 commit 42aba72
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,38 @@ A window manager experiment written in Javascript, HTML5 and CSS3.

<a href="http://www.rlamana.es/ventus">Try it!</a> (http://www.rlamana.es/ventus)

### Create a new window manager

var wm = new Ventus.WindowManager();

### Create a new empty window

var window = wm.createWindow({
title: 'A new window',
x: 50,
y: 50,
width: 400,
height: 250
});

window.open();

### Create a new window wrapping a DOM Element

##### Using a query
wm.createWindow.fromQuery('.my-app-content', {
title: 'My App',
width: 330,
height: 400,
x: 670,
y: 60
});

##### Using a reference
wm.createWindow.fromElement(domElement, {
title: 'My App',
width: 500,
height: 500,
x: 0,
y: 0
});

0 comments on commit 42aba72

Please sign in to comment.