Home / Function/ _attributes() — fastapi Function Reference

_attributes() — fastapi Function Reference

Architecture documentation for the _attributes() function in termynal.js from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  b4d1f54f_1c2f_1666_2445_26679ba03662["_attributes()"]
  a7203e68_a2ee_77da_beac_b0cbd8ae1a9f["lineDataToElements()"]
  a7203e68_a2ee_77da_beac_b0cbd8ae1a9f -->|calls| b4d1f54f_1c2f_1666_2445_26679ba03662
  style b4d1f54f_1c2f_1666_2445_26679ba03662 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

docs/en/docs/js/termynal.js lines 238–254

    _attributes(line) {
        let attrs = '';
        for (let prop in line) {
            // Custom add class
            if (prop === 'class') {
                attrs += ` class=${line[prop]} `
                continue
            }
            if (prop === 'type') {
                attrs += `${this.pfx}="${line[prop]}" `
            } else if (prop !== 'value') {
                attrs += `${this.pfx}-${prop}="${line[prop]}" `
            }
        }

        return attrs;
    }

Subdomains

Frequently Asked Questions

What does _attributes() do?
_attributes() is a function in the fastapi codebase.
What calls _attributes()?
_attributes() is called by 1 function(s): lineDataToElements.

Analyze Your Own Codebase

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

Try Supermodel Free