Home / Function/ setText() — vue Function Reference

setText() — vue Function Reference

Architecture documentation for the setText() function in dom-props.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  b09ce645_f65c_3c13_13a9_61fb28b20e95["setText()"]
  2d0c5ed1_0a31_49db_0a74_ee78b6474708["dom-props.ts"]
  b09ce645_f65c_3c13_13a9_61fb28b20e95 -->|defined in| 2d0c5ed1_0a31_49db_0a74_ee78b6474708
  425e3e86_3201_04c4_cc8c_1e92c1d4118e["renderDOMProps()"]
  425e3e86_3201_04c4_cc8c_1e92c1d4118e -->|calls| b09ce645_f65c_3c13_13a9_61fb28b20e95
  style b09ce645_f65c_3c13_13a9_61fb28b20e95 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/modules/dom-props.ts lines 46–50

function setText(node, text, raw) {
  const child = new VNode(undefined, undefined, undefined, text)
  child.raw = raw
  node.children = [child]
}

Subdomains

Called By

Frequently Asked Questions

What does setText() do?
setText() is a function in the vue codebase, defined in packages/server-renderer/src/modules/dom-props.ts.
Where is setText() defined?
setText() is defined in packages/server-renderer/src/modules/dom-props.ts at line 46.
What calls setText()?
setText() is called by 1 function(s): renderDOMProps.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free