mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
Merge pull request #3326 from NativeScript/apps-ready
apps app can now compile
This commit is contained in:
@ -79,5 +79,5 @@ application.on(application.uncaughtErrorEvent, function (args: application.Appli
|
||||
}
|
||||
});
|
||||
|
||||
application.cssFile = "ui-tests-app/app.css";
|
||||
application.setCssFileName("ui-tests-app/app.css");
|
||||
application.start({ moduleName: "ui-tests-app/mainPage" });
|
@ -7,7 +7,7 @@ let iconModes = ["automatic", "alwaysOriginal", "alwaysTemplate", undefined];
|
||||
export function onChangeRenderingMode(args: EventData){
|
||||
let button = (<Button>args.object);
|
||||
let tabView = button.page.getViewById<TabView>("tab-view");
|
||||
tabView.iosIconRenderingMode = iconModes[(iconModes.indexOf(tabView.iosIconRenderingMode) + 1) % iconModes.length];
|
||||
tabView.iosIconRenderingMode = <"automatic" | "alwaysOriginal" | "alwaysTemplate">iconModes[(iconModes.indexOf(tabView.iosIconRenderingMode) + 1) % iconModes.length];
|
||||
for(let i = 0, length = tabView.items.length; i < length; i++){
|
||||
(<Button>tabView.items[i].view).text = "" + tabView.iosIconRenderingMode;
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ declare module "application" {
|
||||
/**
|
||||
* This event is raised when an uncaught error occurs while the application is running.
|
||||
*/
|
||||
export function on(event: "uncaughtError", callback: (args: ApplicationEventData) => void, thisArg?: any);
|
||||
export function on(event: "uncaughtError", callback: (args: UnhandledErrorEventData) => void, thisArg?: any);
|
||||
|
||||
/**
|
||||
* This event is raised the orientation of the current device has changed.
|
||||
|
Reference in New Issue
Block a user