Line

ui/client/features/pages-editor/domain/ScopeLinkView

Pure (DOMAIN-001) — maps the server's scope/binding graph (core buildScopeLinks, #223) to a view model: a left column of the page's in-scope declarations, a right column of the selected element's props, colour-coded...

Cockpit client (features), v0.9. Source: ui/client/features/pages-editor/domain/ScopeLinkView.ts.

Functions#

buildScopeView()#

buildScopeView(graph): ScopeView

Defined in: ui/client/features/pages-editor/domain/ScopeLinkView.ts:15

Parameters#

graph

ScopeLinkGraph

Returns#

ScopeView


scopeColor()#

scopeColor(index): string

Defined in: ui/client/features/pages-editor/domain/ScopeLinkView.ts:11

Colour for the n-th scope declaration (stable: follows declaration order).

Parameters#

index

number

Returns#

string