MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _updateStyleScope

Function _updateStyleScope

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

Source from the content-addressed store, hash-verified

168 }
169
170 public _updateStyleScope(cssFileName?: string, cssString?: string, css?: string): void {
171 let scope = this._styleScope;
172 if (!scope) {
173 scope = new StyleScope();
174 this.setScopeProperty(scope, cssFileName, cssString, css);
175 this._inheritStyleScope(scope);
176 this._isStyleScopeHost = true;
177 } else {
178 this.setScopeProperty(scope, cssFileName, cssString, css);
179 this._onCssStateChange();
180 }
181 }
182
183 private setScopeProperty(scope: StyleScope, cssFileName?: string, cssString?: string, css?: string): void {
184 if (cssFileName !== undefined) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected