mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
17 lines
356 B
TypeScript
17 lines
356 B
TypeScript
import dialogs = require("ui/dialogs");
|
|
|
|
export function alertTapped(args) {
|
|
dialogs.alert("Hi there!");
|
|
}
|
|
|
|
export function confirmTapped(args) {
|
|
dialogs.confirm("Are you sure?");
|
|
}
|
|
|
|
export function promptTapped(args) {
|
|
dialogs.prompt("Enter name", "John Doe");
|
|
}
|
|
|
|
export function loginTapped(args) {
|
|
dialogs.login("Login:", "username");
|
|
} |