Options
All
  • Public
  • Public/Protected
  • All
Menu

Module u-pages

Find and navigate to the pages of your app using this module.

var uPages = require('u-pages');

var homePage = uPages.get('Home Page');
homePage.show(uPages.PageTransition.SLIDE);

Index

Enumerations

Variables

Functions

Variables

current: Page

Reference to the current page.

var uActions = require('u-actions');
new uActions.Action('get current page',getCurrentPage).register();
function getCurrentPage(){
print(uPages.current);
}

Functions

  • Get a list of all pages in the app.

    var uActions = require('u-actions');
    new uActions.Action('calculate pages',calculatePages).register();
    function calculatePages(){
    print(uPages.all().length);
    }

    Returns Page[]

  • get(pageName: string): Page
  • Get a page by name.

    var uActions = require('u-actions');
    new uActions.Action('set text',setText).register();
    function setText(){
    var textBox= uPages.get('testing page').components.getText('Text 1');
    textBox.text='Hello there!';
    }

    Parameters

    • pageName: string

      The name of page in Umajin App Creator that you want to get.

    Returns Page