Line

ui/client/features/list-browser/domain/ListNav

Pure (DOMAIN-001): keyboard model of a Browser-pane list (an ARIA listbox with one tab stop).

Cockpit client (features), v0.9. Source: ui/client/features/list-browser/domain/ListNav.ts.

Functions#

isSelectKey()#

isSelectKey(key): boolean

Defined in: ui/client/features/list-browser/domain/ListNav.ts:27

Parameters#

key

string

Returns#

boolean


listNextIndex()#

listNextIndex(key, index, count): number | null

Defined in: ui/client/features/list-browser/domain/ListNav.ts:5

Index the key moves focus to from index, or null when the key is not a list-navigation key.

Parameters#

key

string

index

number

count

number

Returns#

number | null


tabStopIndex()#

tabStopIndex(ids, selectedId): number

Defined in: ui/client/features/list-browser/domain/ListNav.ts:22

Which row is in the tab order: the selected one when it is showing, else the first.

Parameters#

ids

string[]

selectedId

string | null

Returns#

number