MCPcopy
hub / github.com/wavetermdev/waveterm / Event

Method Event

pkg/vdom/vdom_root.go:217–224  ·  view source on GitHub ↗
(id string, propName string, event VDomEvent)

Source from the content-addressed store, hash-verified

215}
216
217func (r *RootElem) Event(id string, propName string, event VDomEvent) {
218 comp := r.CompMap[id]
219 if comp == nil || comp.Elem == nil {
220 return
221 }
222 fnVal := comp.Elem.Props[propName]
223 callVDomFn(fnVal, event)
224}
225
226// this will be called by the frontend to say the DOM has been mounted
227// it will eventually send any updated "refs" to the backend as well

Callers 4

Test1Function · 0.45
VDomRenderCommandMethod · 0.45
handleAnthropicEventFunction · 0.45
handleOpenAIEventFunction · 0.45

Calls 1

callVDomFnFunction · 0.70

Tested by 1

Test1Function · 0.36