console.resource/details-item

Adds a new details item to the default resource summary on the details page.

Name Value Type Optional Description

model

ExtensionK8sModel

no

The subject resource’s API group, version, and kind.

id

string

no

A unique identifier.

column

DetailsItemColumn

no

Determines if the item will appear in the 'left' or 'right' column of the resource summary on the details page. Default: 'right'

title

string

no

The details item title.

path

string

yes

An optional, fully-qualified path to a resource property to used as the details item value. You can directly render only primitive type values, linked in Additional resources. Use the component property to handle other data types.

component

CodeRef<React.ComponentType<DetailsItem ComponentProps<K8sResourceCommon, any>>>

yes

An optional React component that will render the details item value.

sortWeight

number

yes

An optional sort weight, relative to all other details items in the same column. You can represent it by using any valid JavaScript Number, linked in Additional resources. Items in each column are sorted independently, lowest to highest. Items without sort weights are sorted after items with sort weights.