Line

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

ui/client/features/feature-catalog/components/StructureViewSwitch

Cockpit client (features), next. Source: ui/client/features/feature-catalog/components/StructureViewSwitch.tsx.

Type Aliases#

StructureView#

StructureView = "tree" | "flow"

Defined in: ui/client/features/feature-catalog/components/StructureViewSwitch.tsx:1

Functions#

StructureViewSwitch()#

StructureViewSwitch(__namedParameters): Element

Defined in: ui/client/features/feature-catalog/components/StructureViewSwitch.tsx:12

Tree | Flow switch above the feature structure. Same look as the Pages editor's Files | Flow switch (.flow-switch, ui/client/app/flow-browser.css, loaded globally) -- a different choice, so its own local state rather than the shared per-project Files | Flow one (@/features/flow-browser's useBrowserView), which would otherwise cross-couple the two screens' toggles.

Parameters#

__namedParameters
onChange

(view) => void

view

StructureView

Returns#

Element