API Docs for: 0.1

Class UbuntuUI.Page

Class defined in: page.js:23

An Ubuntu app consists of a Pagestack containing one or more Pages. Each page displays full-screen. See the Pagestack class.

Each Page must have an id attriubute. This is used to push the Page to the top of the Pagestack (see the Pagestack class).

Navigation between Pages is typically provided by the Header and its Tabs. See the Header class.

UbuntuUI.Page( )
page.js:23
Example
 </body>
   <div data-role="page">
     <header data-role="header">
       [...]
     </header>
     <div data-role="content">
       <div data-role="pagestack">
         <div data-role="page" id="main">
           [...]
         </div>
         <div data-role="page" id="ID">
           [...]
         </div>
       </div>
     </div>
   </div>
 </body>

 JavaScript access:
 var page = UI.page("pageID");