Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/directory-browser/controllers/DirectoryBrowserController

Cockpit client (features), v0.8. Source: ui/client/features/directory-browser/controllers/DirectoryBrowserController.tsx.

Functions#

DirectoryBrowserController()#

DirectoryBrowserController(__namedParameters): Element

Defined in: ui/client/features/directory-browser/controllers/DirectoryBrowserController.tsx:8

Mount anywhere a folder must be chosen. onSelect receives the absolute path the user picked; initialPath (optional) is where browsing starts.

Props#

Prop Type Required Default Description
onSelect (path: string) => void Yes —
initialPath string No —

Returns#

Element