| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,6 +34,10 @@ export var mainEntry: frame.NavigationEntry; | |||
| 34 | 34 | ||
| 35 | 35 | export var cssFile: string = "app.css" | |
| 36 | 36 | ||
| 37 | + export function setCssFileName(cssFileName: string) { | ||
| 38 | + cssFile = cssFileName; | ||
| 39 | + } | ||
| 40 | + | ||
| 37 | 41 | export var appSelectors: RuleSet[] = []; | |
| 38 | 42 | export var additionalSelectors: RuleSet[] = []; | |
| 39 | 43 | export var cssSelectors: RuleSet[] = []; | |
@@ -42,6 +46,10 @@ export var keyframes: any = {}; | |||
| 42 | 46 | ||
| 43 | 47 | export var resources: any = {}; | |
| 44 | 48 | ||
| 49 | + export function setResources(res: any) { | ||
| 50 | + resources = res; | ||
| 51 | + } | ||
| 52 | + | ||
| 45 | 53 | export var onUncaughtError: (error: definition.NativeScriptError) => void = undefined; | |
| 46 | 54 | ||
| 47 | 55 | export var onLaunch: (context: any) => any = undefined; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -116,12 +116,22 @@ declare module "application" { | |||
| 116 | 116 | */ | |
| 117 | 117 | export var resources: any; | |
| 118 | 118 | ||
| 119 | + /** | ||
| 120 | + * Sets application level static resources. | ||
| 121 | + */ | ||
| 122 | + export function setResources(resources: any); | ||
| 123 | + | ||
| 119 | 124 | /** | |
| 120 | 125 | * The application level css file name (starting from the application root). Used to set css across all pages. | |
| 121 | 126 | * Css will be applied for every page and page css will be applied after. | |
| 122 | 127 | */ | |
| 123 | 128 | export var cssFile: string; | |
| 124 | 129 | ||
| 130 | + /** | ||
| 131 | + * Sets css file name for the application. | ||
| 132 | + */ | ||
| 133 | + export function setCssFileName(cssFile: string); | ||
| 134 | + | ||
| 125 | 135 | //@private | |
| 126 | 136 | export var appSelectors: RuleSet[]; | |
| 127 | 137 | export var additionalSelectors: RuleSet[]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments