MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / QueueRefOp

Function QueueRefOp

tsunami/app/defaultclient.go:164–173  ·  view source on GitHub ↗

QueueRefOp queues a reference operation to be executed on the DOM element. Operations include actions like "focus", "scrollIntoView", etc. If the ref is nil or not current, the operation is ignored. This function must be called within a component context.

(ref *vdom.VDomRef, op vdom.VDomRefOperation)

Source from the content-addressed store, hash-verified

162// If the ref is nil or not current, the operation is ignored.
163// This function must be called within a component context.
164func QueueRefOp(ref *vdom.VDomRef, op vdom.VDomRefOperation) {
165 if ref == nil || !ref.HasCurrent.Load() {
166 return
167 }
168 if op.RefId == "" {
169 op.RefId = ref.RefId
170 }
171 client := engine.GetDefaultClient()
172 client.Root.QueueRefOp(op)
173}
174
175func SetAppMeta(meta AppMeta) {
176 meta.ShortDesc = util.TruncateString(meta.ShortDesc, MaxShortDescLen)

Callers

nothing calls this directly

Calls 2

GetDefaultClientFunction · 0.92
QueueRefOpMethod · 0.45

Tested by

no test coverage detected