Reference to the current page.
var uActions = require('u-actions');
new uActions.Action('get current page',getCurrentPage).register();
function getCurrentPage(){
print(uPages.current);
}
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);
}
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!';
}
The name of page in Umajin App Creator that you want to get.
Find and navigate to the pages of your app using this module.