mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(modal): introduce stretched param to showModal method (#5496)
* fix-next(ios-modal-view): force stretch alignment * feat(modal): introduce stretched param to showModal method * test(modal-view): add modal view stretched test
This commit is contained in:
committed by
Svetoslav
parent
6509efa430
commit
0138873ee3
@@ -10,3 +10,15 @@ export function onTap(args) {
|
||||
label.text = username + "/" + password;
|
||||
}, fullscreen);
|
||||
}
|
||||
|
||||
export function onTapStretched(args) {
|
||||
const page = <Page>args.object.page;
|
||||
const label = page.getViewById<Label>("label");
|
||||
var fullscreen = false;
|
||||
var stretched = true;
|
||||
|
||||
page.showModal("ui-tests-app/modal-view/login-page", "context", function (username: string, password: string) {
|
||||
console.log(username + "/" + password);
|
||||
label.text = username + "/" + password;
|
||||
}, fullscreen, false, stretched);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user