Line

ui/client/lib/scrollSelectionIntoView

follow-up to #51 (pages-editor's TreePanel.tsx/PreviewPanel.tsx) — a plain DOM utility, not a hook or component: no state of its own, just a procedure a component's own useEffect calls.

Cockpit client (shared), v0.9. Source: ui/client/lib/scrollSelectionIntoView.ts.

Functions#

scrollSelectionIntoView()#

scrollSelectionIntoView(container, selectedId): void

Defined in: ui/client/lib/scrollSelectionIntoView.ts:15

Parameters#

container

HTMLElement | null

selectedId

string | null

Returns#

void