ui/client/features/feature-catalog/domain/FeatureView
Pure (DOMAIN-001): the Features screen's rows and the details of one feature, made from what construct summarize already answers.
Cockpit client (features), v0.9. Source: ui/client/features/feature-catalog/domain/FeatureView.ts.
Functions#
buildFeatureView()#
buildFeatureView(
summary):FeatureView|null
Defined in: ui/client/features/feature-catalog/domain/FeatureView.ts:26
Parameters#
summary
Returns#
FeatureView | null
fileHref()#
fileHref(
feature,layer,path):string|null
Defined in: ui/client/features/feature-catalog/domain/FeatureView.ts:17
Where a file can be opened on another screen: components on Components, pages on Pages; other layers have no screen of their own.
Parameters#
feature
string
layer
string
path
string
Returns#
string | null
findFeature()#
findFeature(
features,name):FeatureRow|null
Defined in: ui/client/features/feature-catalog/domain/FeatureView.ts:12
The row for a name only when it is in the list (a stale or hand-edited ?feature= selects nothing).
Parameters#
features
name
string | null
Returns#
FeatureRow | null
toListItems()#
toListItems(
features):object[]
Defined in: ui/client/features/feature-catalog/domain/FeatureView.ts:7
Parameters#
features
Returns#
object[]