Line

You are reading the unreleased docs (next). See latest (v0.9)

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

Pure (DOMAIN-001) — maps the server's scope/binding graph (core buildScopeLinks, ) 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 edg...

Cockpit client (features), next. 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