Skip to content

Interface: KubeObjectContextMenuItem#

Common.Types.KubeObjectContextMenuItem

Table of contents#

Properties#

Properties#

icon#

icon: string | BaseIconProps

If the type is string then it is shorthand for BaseIconProps.material

This is required because this item can be either rendered as a context menu or as a toolbar in the kube object details page.


onClick#

onClick: (obj: KubeObject<KubeObjectMetadata<KubeObjectScope>, unknown, unknown>) => void

Type declaration#

▸ (obj): void

The action when clicked

Parameters#
Name Type
obj KubeObject<KubeObjectMetadata<KubeObjectScope>, unknown, unknown>
Returns#

void


title#

title: string

The title text for the menu item or the hover text for the icon.