mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* Init steps * Implement logic for auto-complete for all test pages * Init steps * Implement logic for auto-complete for all test pages * Expose TestPageMainViewModel * Merge * Improve check if example is already loaded in collection * Reorder tests * Fix tslint * Include csslv * Include new image source
13 lines
536 B
TypeScript
13 lines
536 B
TypeScript
import { Page } from "tns-core-modules/ui/page";
|
|
import { Label } from "tns-core-modules/ui/label";
|
|
|
|
export function onTap(args) {
|
|
const page = <Page>args.object.page;
|
|
const label = page.getViewById<Label>("label");
|
|
var fullscreen = (<any>args.object).text.indexOf("(full-screen)") !== -1;
|
|
page.showModal("ui-tests-app/modal-view/login-page", "context", function (username: string, password: string) {
|
|
console.log(username + "/" + password);
|
|
label.text = username + "/" + password;
|
|
}, fullscreen);
|
|
}
|