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)
| 162 | // If the ref is nil or not current, the operation is ignored. |
| 163 | // This function must be called within a component context. |
| 164 | func 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 | |
| 175 | func SetAppMeta(meta AppMeta) { |
| 176 | meta.ShortDesc = util.TruncateString(meta.ShortDesc, MaxShortDescLen) |
nothing calls this directly
no test coverage detected