_attributes() — fastapi Function Reference
Architecture documentation for the _attributes() function in termynal.js from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 6496b920_f57a_a7ae_61e0_306ad925ef21["_attributes()"] 000471a9_ef7a_d9dc_ef48_af16a8d6655c["Termynal"] 6496b920_f57a_a7ae_61e0_306ad925ef21 -->|defined in| 000471a9_ef7a_d9dc_ef48_af16a8d6655c d8be4d1a_8513_576d_4dde_396e61f6c933["lineDataToElements()"] d8be4d1a_8513_576d_4dde_396e61f6c933 -->|calls| 6496b920_f57a_a7ae_61e0_306ad925ef21 style 6496b920_f57a_a7ae_61e0_306ad925ef21 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;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does _attributes() do?
_attributes() is a function in the fastapi codebase, defined in docs/en/docs/js/termynal.js.
Where is _attributes() defined?
_attributes() is defined in docs/en/docs/js/termynal.js at line 238.
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