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 aPage = {};
aPage.PAGE_ID = "aPage";
aPage.createIn = function(box) {
// BOX: Page container.
aPage.box = box;
box.color = "white";
box.scrollY = 0;
// LABEL: Centered text.
box.lblCenteredText = createLabel(0, 0, "auto", "auto");
box.add(that);
that.text = "Page A";
that.onResize(function(self) {
self.center();
});
print("Opened page id: " + aPage.PAGE_ID);
}