Line

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

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

Pure (DOMAIN-001): a request to open a bare project file at a known position in the Navigator, e.g.

Cockpit client (features), next. Source: ui/client/features/pages-editor/domain/OpenSource.ts.

Type Aliases#

OpenSourceTarget#

OpenSourceTarget = object

Defined in: ui/client/features/pages-editor/domain/OpenSource.ts:6

Properties#

column

column: number | null

Defined in: ui/client/features/pages-editor/domain/OpenSource.ts:6

file

file: string

Defined in: ui/client/features/pages-editor/domain/OpenSource.ts:6

line

line: number | null

Defined in: ui/client/features/pages-editor/domain/OpenSource.ts:6

Variables#

OPEN_SOURCE_EVENT#

const OPEN_SOURCE_EVENT: "construct:open-source" = 'construct:open-source'

Defined in: ui/client/features/pages-editor/domain/OpenSource.ts:9

Event name used when the Navigator is already on screen.

Functions#

openSourceTargetFromCxSrc()#

openSourceTargetFromCxSrc(src): OpenSourceTarget | null

Defined in: ui/client/features/pages-editor/domain/OpenSource.ts:13

A data-cx-src-shaped "file:line:col" string (the preview bridge's construct:error src) as an OpenSourceTarget, or null when it doesn't parse.

Parameters#

src

string

Returns#

OpenSourceTarget | null