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

Function applySelectors

packages/core/ui/dialogs/dialogs-common.ts:258–270  ·  view source on GitHub ↗
(view: T, callback: (view: T) => void)

Source from the content-addressed store, hash-verified

256}
257
258function applySelectors<T extends View>(view: T, callback: (view: T) => void) {
259 const currentPage = getCurrentPage();
260 if (currentPage) {
261 const styleScope = currentPage._styleScope;
262 if (styleScope) {
263 view.parent = currentPage;
264 view._inheritStyleScope(styleScope);
265 view.onLoaded();
266 callback(view);
267 view.onUnloaded();
268 }
269 }
270}
271
272let button: View;
273let label: View;

Callers 3

getButtonColorsFunction · 0.85
getLabelColorFunction · 0.85
getTextFieldColorFunction · 0.85

Calls 4

getCurrentPageFunction · 0.70
callbackFunction · 0.50
onLoadedMethod · 0.45
onUnloadedMethod · 0.45

Tested by

no test coverage detected