cordova-mobile-app-template
Version:
Simple and fully customizable user interface template. Design for mobile app development on Apache Cordova framework or Ionic / Capacitor Native Runtime. Platforms: Android, iOS.
22 lines (16 loc) • 426 B
JavaScript
const bPage = {};
bPage.PAGE_ID = "bPage";
bPage.createIn = function(box) {
// BOX: Page container.
bPage.box = box;
box.color = "white";
box.scrollY = 0;
// LABEL: Centered text.
box.lblCenteredText = createLabel(0, 0, "auto", "auto");
box.add(that);
that.text = "Page B";
that.onResize(function(self) {
self.center();
});
print("Opened page id: " + bPage.PAGE_ID);
}