ui/client/features/review/domain/TreeNav
Pure (DOMAIN-001): the changed-units tree as data, and the keyboard model over it.
Cockpit client (features), v0.8. Source: ui/client/features/review/domain/TreeNav.ts.
Type Aliases#
VisibleRow#
VisibleRow =
object
Defined in: ui/client/features/review/domain/TreeNav.ts:17
A row of the tree as it is currently visible (parents' closed children are skipped).
Properties#
expandable
expandable:
boolean
Defined in: ui/client/features/review/domain/TreeNav.ts:17
firstChildId
firstChildId:
string|null
Defined in: ui/client/features/review/domain/TreeNav.ts:17
id
id:
string
Defined in: ui/client/features/review/domain/TreeNav.ts:17
parentId
parentId:
string|null
Defined in: ui/client/features/review/domain/TreeNav.ts:17
Functions#
flattenVisible()#
flattenVisible(
nodes,isOpen,parentId?):VisibleRow[]
Defined in: ui/client/features/review/domain/TreeNav.ts:19
Parameters#
nodes
isOpen
(id) => boolean
parentId?
string | null
Returns#
navigate()#
navigate(
key,rows,at,isOpen):TreeAction|null
Defined in: ui/client/features/review/domain/TreeNav.ts:34
What a key does from row at. null means the key is not the tree's (let it through).
Parameters#
key
string
rows
at
string
isOpen
(id) => boolean
Returns#
TreeAction | null
tabStop()#
tabStop(
rows,activeId,selectedId):string|null
Defined in: ui/client/features/review/domain/TreeNav.ts:27
Which row is the tab stop: the active one if it is still visible, else the selected file's, else the first.
Parameters#
rows
activeId
string | null
selectedId
string | null
Returns#
string | null