@k8slens/extensions / Exports / Renderer / Component / KubeObjectMenuProps
Interface: KubeObjectMenuProps<TKubeObject>#
Renderer.Component.KubeObjectMenuProps
Type parameters#
Name | Type |
---|---|
TKubeObject |
extends KubeObject |
Hierarchy#
↳ KubeObjectMenuProps
Table of contents#
Properties#
- animated
- autoCloseOnSelect
- autoFocus
- children
- className
- closeOnClickItem
- closeOnClickOutside
- closeOnScroll
- data-testid
- editable
- htmlFor
- id
- isOpen
- object
- onOpen
- position
- removable
- removeAction
- removeConfirmationMessage
- toggleEvent
- toolbar
- triggerIcon
- updateAction
- usePortal
Methods#
Properties#
animated#
• Optional
animated: boolean
Inherited from#
autoCloseOnSelect#
• Optional
autoCloseOnSelect: boolean
Inherited from#
MenuActionsProps.autoCloseOnSelect
autoFocus#
• Optional
autoFocus: boolean
Inherited from#
children#
• Optional
children: StrictReactNode
Inherited from#
className#
• Optional
className: string
Inherited from#
closeOnClickItem#
• Optional
closeOnClickItem: boolean
Inherited from#
MenuActionsProps.closeOnClickItem
closeOnClickOutside#
• Optional
closeOnClickOutside: boolean
Inherited from#
MenuActionsProps.closeOnClickOutside
closeOnScroll#
• Optional
closeOnScroll: boolean
Inherited from#
MenuActionsProps.closeOnScroll
data-testid#
• Optional
data-testid: string
Inherited from#
editable#
• Optional
editable: boolean
htmlFor#
• Optional
htmlFor: string
Inherited from#
id#
• Optional
id: string
Inherited from#
isOpen#
• Optional
isOpen: boolean
Inherited from#
object#
• object: TKubeObject
onOpen#
• Optional
onOpen: () => void
Type declaration#
▸ (): void
Returns#
void
Inherited from#
position#
• Optional
position: MenuPosition
Inherited from#
removable#
• Optional
removable: boolean
removeAction#
• Optional
removeAction: () => void
| Promise
<void
>
Type declaration#
▸ (): void
| Promise
<void
>
Deprecated
Provide your own remove <MenuItem>
as part of the children
passed to this component
Returns#
void
| Promise
<void
>
Inherited from#
removeConfirmationMessage#
• Optional
removeConfirmationMessage: StrictReactNode
| () => StrictReactNode
Deprecated
Provide your own remove <MenuItem>
as part of the children
passed to this component
Inherited from#
MenuActionsProps.removeConfirmationMessage
toggleEvent#
• Optional
toggleEvent: "click"
| "contextmenu"
Inherited from#
toolbar#
• Optional
toolbar: boolean
Inherited from#
triggerIcon#
• Optional
triggerIcon: StrictReactNode
| IconProps
& TooltipDecoratorProps
Inherited from#
updateAction#
• Optional
updateAction: () => void
| Promise
<void
>
Type declaration#
▸ (): void
| Promise
<void
>
Deprecated
Provide your own update <MenuItem>
as part of the children
passed to this component
Returns#
void
| Promise
<void
>
Inherited from#
usePortal#
• Optional
usePortal: boolean
| HTMLElement
Inherited from#
Methods#
close#
▸ Optional
close(): void
Returns#
void
Inherited from#
open#
▸ Optional
open(): void
Returns#
void