ui/client/features/list-browser/domain/QuerySelection
Pure (DOMAIN-001): a selection kept in the URL query (?feature=billing), so a reload or a shared link opens the same thing.
Cockpit client (features), v0.8. Source: ui/client/features/list-browser/domain/QuerySelection.ts.
Functions#
readSelection()#
readSelection(
search,param):string|null
Defined in: ui/client/features/list-browser/domain/QuerySelection.ts:4
Parameters#
search
string
param
string
Returns#
string | null
validSelection()#
validSelection(
ids,wanted):string|null
Defined in: ui/client/features/list-browser/domain/QuerySelection.ts:19
The selected id only when it is really in the list, else null: a stale or hand-edited URL selects nothing.
Parameters#
ids
string[]
wanted
string | null
Returns#
string | null
withSelection()#
withSelection(
search,param,value):string
Defined in: ui/client/features/list-browser/domain/QuerySelection.ts:10
The query string (with its leading ?, or empty) after setting or clearing param; other params are kept.
Parameters#
search
string
param
string
value
string | null
Returns#
string