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

Function applyRootCssClass

packages/core/application/application.ios.ts:1733–1743  ·  view source on GitHub ↗
(cssClasses: string[], newCssClass: string)

Source from the content-addressed store, hash-verified

1731}
1732
1733function applyRootCssClass(cssClasses: string[], newCssClass: string): void {
1734 const rootView = Application.getRootView();
1735 if (!rootView) {
1736 return;
1737 }
1738
1739 Application.applyCssClass(rootView, cssClasses, newCssClass);
1740
1741 const rootModalViews = <Array<View>>rootView._getRootModalViews();
1742 rootModalViews.forEach((rootModalView) => Application.applyCssClass(rootModalView, cssClasses, newCssClass));
1743}
1744
1745function applyFontScaleToRootViews(): void {
1746 const rootView = Application.getRootView();

Callers 1

Calls 3

applyCssClassMethod · 0.80
forEachMethod · 0.80
getRootViewMethod · 0.65

Tested by

no test coverage detected