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

Method renderText

tsunami/engine/render.go:71–76  ·  view source on GitHub ↗

Pattern 1

(text string, comp **ComponentImpl)

Source from the content-addressed store, hash-verified

69
70// Pattern 1
71func (r *RootElem) renderText(text string, comp **ComponentImpl) {
72 // No need to clear Children/Comp - text components cannot have them
73 if (*comp).Text != text {
74 (*comp).Text = text
75 }
76}
77
78// Pattern 2
79func (r *RootElem) renderSimple(elem *vdom.VDomElem, comp **ComponentImpl, containingComp string, opts *RenderOpts) {

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected