Skip to content

Commit 495150f

Browse files
committed
OSDOCS#9638: Adds extension
1 parent 644ec4e commit 495150f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

modules/dynamic-plugin-sdk-extensions.adoc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,37 @@ resource page will be rendered
10231023
component to be rendered when the model matches
10241024
|===
10251025

1026+
[discrete]
1027+
== `console.resource/details-item`
1028+
1029+
Adds a new details item to the default resource summary on the details page.
1030+
1031+
[cols=".^2,.^3a,.^3a,.^3a",options="header"]
1032+
|===
1033+
|Name |Value Type |Optional |Description
1034+
|`model` |`ExtensionK8sModel` |no |The subject resource's API group, version, and kind.
1035+
1036+
|`id`
1037+
|`string` |no |A unique identifier.
1038+
1039+
|`column`
1040+
|`DetailsItemColumn` |no |Determines if the item will appear in the 'left' or 'right' column of the resource summary on the details page. Default: 'right'
1041+
1042+
|`title`
1043+
|`string` |no |The details item title.
1044+
1045+
|`path`
1046+
|`string` |yes |An optional, fully-qualified path to a resource property to used as the details item value. Only link:https://developer.mozilla.org/en-US/docs/Glossary/Primitive[primitive type] values can be rendered directly. Use the component property to handle other data types.
1047+
1048+
|`component`
1049+
|`CodeRef<React.ComponentType<DetailsItem
1050+
ComponentProps<K8sResourceCommon, any>>>` |yes |An optional React component that will render the details item value.
1051+
1052+
|`sortWeight`
1053+
|`number` |yes |An optional sort weight, relative to all other details items in the same column. Represented by any valid link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#number_type[JavaScriptNumber]. Items in each column are sorted independently, lowest to highest. Items without sort weightsare sorted after items with sort weights.
1054+
1055+
|===
1056+
10261057
[discrete]
10271058
== `console.storage-class/provisioner`
10281059

0 commit comments

Comments
 (0)