Line

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

ui/client/features/help/hooks/useOpenSectionOnHash

Cockpit client (features), next. Source: ui/client/features/help/hooks/useOpenSectionOnHash.tsx.

Functions#

useOpenSectionOnHash()#

useOpenSectionOnHash(): void

Defined in: ui/client/features/help/hooks/useOpenSectionOnHash.tsx:10

: Help sections start collapsed (except Getting started), so a Contents link (#tutorials) has to open the section it points at, on the page's first load with that hash and on every later hash change. A native

does not open itself when the fragment targets the element rather than something inside it.

Returns#

void