Line

ui/client/features/shell/hooks/useShellNavigation

Cockpit client (features), v0.9. Source: ui/client/features/shell/hooks/useShellNavigation.tsx.

Functions#

useShellNavigation()#

useShellNavigation(pathname): object

Defined in: ui/client/features/shell/hooks/useShellNavigation.tsx:9

Navigation actions the shell offers its slots: go to a route, or open a page file in the Pages editor (in place when it is already showing).

Parameters#

pathname

string

Returns#

object

navigate

navigate: (href) => any

Parameters
href

string

Returns

any

openPage

openPage: (target) => void

Parameters
target

OpenPageTarget

Returns

void