mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add transitions test pages to ui-tests-app
This commit is contained in:
15
apps/ui-tests-app/transitions/page1.ts
Normal file
15
apps/ui-tests-app/transitions/page1.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import frame = require("ui/frame");
|
||||
import pages = require("ui/page");
|
||||
|
||||
export function onTap(args) {
|
||||
var navigationEntry = {
|
||||
moduleName: "transitions/page0",
|
||||
animated: true,
|
||||
navigationTransition: {
|
||||
transition: args.object.tag,
|
||||
duration: 380,
|
||||
curve: "easeIn"
|
||||
}
|
||||
};
|
||||
frame.topmost().navigate(navigationEntry);
|
||||
}
|
||||
Reference in New Issue
Block a user