MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / on

Function on

src/dd-base-impl.ts:37–39  ·  view source on GitHub ↗

* Register an event callback for the specified event. * * @param event - Event name to listen for * @param callback - Function to call when event occurs

(event: string, callback: EventCallback)

Source from the content-addressed store, hash-verified

35 * @param callback - Function to call when event occurs
36 */
37 public on(event: string, callback: EventCallback): void {
38 this._eventRegister[event] = callback;
39 }
40
41 /**
42 * Unregister an event callback for the specified event.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected