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
  5157b463_3064_5555_5624_29889ac80136["setText()"]
  c0b33b28_c53f_db55_fab1_7f6054379fe4["renderDOMProps()"]
  c0b33b28_c53f_db55_fab1_7f6054379fe4 -->|calls| 5157b463_3064_5555_5624_29889ac80136
  style 5157b463_3064_5555_5624_29889ac80136 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.
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