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

Method on

packages/core/data/observable-array/index.ts:436–436  ·  view source on GitHub ↗

* Adds a listener for the specified event name. * * @param eventName The name of the event. * @param callback The event listener to add. Will be called when an event of * the given name is raised. * @param thisArg An optional parameter which, when set, will be bound as the * `this` conte

(eventName: string, callback: (data: EventData) => void, thisArg?: any)

Source from the content-addressed store, hash-verified

434 * bound.
435 */
436 on(eventName: string, callback: (data: EventData) => void, thisArg?: any): void;
437
438 on(event: 'change', callback: (args: ChangedData<T>) => void, thisArg?: any): void;
439}

Implementers 2

Observablepackages/core/data/observable/index.ts
SharedTransitionObservablepackages/core/ui/transition/shared-tra

Calls

no outgoing calls

Tested by

no test coverage detected