MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / setScopeProperty

Function setScopeProperty

packages/core/ui/core/view/view-common.ts:183–191  ·  view source on GitHub ↗
(scope: StyleScope, cssFileName?: string, cssString?: string, css?: string)

Source from the content-addressed store, hash-verified

181 }
182
183 private setScopeProperty(scope: StyleScope, cssFileName?: string, cssString?: string, css?: string): void {
184 if (cssFileName !== undefined) {
185 scope.addCssFile(cssFileName);
186 } else if (cssString !== undefined) {
187 scope.addCss(cssString);
188 } else if (css !== undefined) {
189 scope.css = css;
190 }
191 }
192
193 onLoaded() {
194 if (!this.isLoaded) {

Callers

nothing calls this directly

Calls 2

addCssFileMethod · 0.80
addCssMethod · 0.45

Tested by

no test coverage detected