Home / Function/ convertEnumeratedValue() — vue Function Reference

convertEnumeratedValue() — vue Function Reference

Architecture documentation for the convertEnumeratedValue() function in attrs.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  d4d8ab2a_30f5_4b0f_9f02_cdde7a21a550["convertEnumeratedValue()"]
  37924a94_7eda_6738_f2fb_dc83c64098b0["renderAttr()"]
  37924a94_7eda_6738_f2fb_dc83c64098b0 -->|calls| d4d8ab2a_30f5_4b0f_9f02_cdde7a21a550
  5591bbf2_3e05_d1ab_faba_adf1092a56e3["isFalsyAttrValue()"]
  d4d8ab2a_30f5_4b0f_9f02_cdde7a21a550 -->|calls| 5591bbf2_3e05_d1ab_faba_adf1092a56e3
  style d4d8ab2a_30f5_4b0f_9f02_cdde7a21a550 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/util/attrs.ts lines 28–35

export const convertEnumeratedValue = (key: string, value: any) => {
  return isFalsyAttrValue(value) || value === 'false'
    ? 'false'
    : // allow arbitrary string value for contenteditable
    key === 'contenteditable' && isValidContentEditableValue(value)
    ? value
    : 'true'
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does convertEnumeratedValue() do?
convertEnumeratedValue() is a function in the vue codebase.
What does convertEnumeratedValue() call?
convertEnumeratedValue() calls 1 function(s): isFalsyAttrValue.
What calls convertEnumeratedValue()?
convertEnumeratedValue() is called by 1 function(s): renderAttr.

Analyze Your Own Codebase

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

Try Supermodel Free