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

Method changeCssFile

packages/core/ui/styling/style-scope.ts:859–874  ·  view source on GitHub ↗
(cssFileName: string)

Source from the content-addressed store, hash-verified

857 }
858
859 public changeCssFile(cssFileName: string): void {
860 if (!cssFileName) {
861 return;
862 }
863 this._cssFiles.push(cssFileName);
864 currentScopeTag = cssFileName;
865
866 const cssFile = CSSSource.fromURI(cssFileName);
867
868 currentScopeTag = null;
869 this._css = cssFile.source;
870 this._localCssSelectors = cssFile.selectors;
871 this._localCssKeyframes = cssFile.keyframes;
872 this._localCssSelectorVersion++;
873 this.ensureSelectors();
874 }
875
876 @profile
877 private setCss(cssString: string, cssFileName?): void {

Callers 2

changeCssFileFunction · 0.80
_handleLivesyncFunction · 0.80

Calls 3

ensureSelectorsMethod · 0.95
fromURIMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected