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

Function attachToEvent

apps/ui/src/text-field/focus-blur-events-page.ts:14–18  ·  view source on GitHub ↗
(control, event)

Source from the content-addressed store, hash-verified

12}
13
14function attachToEvent(control, event) {
15 control.on(event, () => {
16 control.text = event + ' is thrown';
17 });
18}

Callers 1

onLoadedFunction · 0.85

Calls 1

onMethod · 0.65

Tested by

no test coverage detected