mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Resolved Issue #1242: Add Page showingModally event.
This commit is contained in:
@@ -9,6 +9,15 @@ var page: pages.Page;
|
||||
var usernameTextField: textField.TextField;
|
||||
var passwordTextField: textField.TextField;
|
||||
|
||||
export function onShowingModally(args: observable.EventData) {
|
||||
console.log(">>> login-page.onShowingModally");
|
||||
var modalPage = <pages.Page>args.object;
|
||||
if (modalPage.ios && modalPage.ios.modalPresentationStyle === UIModalPresentationStyle.UIModalPresentationFullScreen) {
|
||||
console.log(">>> Setting modalPage.ios.modalPresentationStyle to UIModalPresentationStyle.UIModalPresentationOverFullScreen");
|
||||
modalPage.ios.modalPresentationStyle = UIModalPresentationStyle.UIModalPresentationOverFullScreen;
|
||||
}
|
||||
}
|
||||
|
||||
export function onShownModally(args: pages.ShownModallyData) {
|
||||
console.log(">>> login-page.onShownModally, context: " + args.context);
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
|
||||
showingModally="onShowingModally"
|
||||
shownModally="onShownModally"
|
||||
navigatingTo="onNavigatingTo"
|
||||
loaded="onLoaded"
|
||||
|
||||
Reference in New Issue
Block a user