• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
      • Overview
      • Getting Started
      • ActionSheet
      • AppBar
      • Avatar
      • BottomNavigation
      • Breadcrumb
      • Card
      • Drawer
      • ExpansionPanel
      • GridLayout
      • Menu
      • Context Menu
      • PanelBar
      • Splitter
      • StackLayout
      • TabStrip
      • Stepper
      • TileLayoutupdated
      • Timeline
      • Globalization
      • API
    • ListBox
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

ContextMenuProps

The props of the KendoReact ContextMenu component.

NameTypeDefaultDescription

children?

React.ReactNode

Sets the Menu items declaratively.

className?

string

Adds a custom className to the Menu top element.

customCloseItemIds?

string[]

Sets the ids of the Menu items that will not be closed on mouse-leave. The ids are hierarchical and zero-based. The first root item has a 0 id. If the first root item has children, the first child item acquires a 0_0 id and the second acquires a 0_1 id.

dir?

string

Sets the direction of the Menu.

id?

string

Sets the ID of the Menu.

itemRender?

any

A React functional or class component which is used for rendering the innermost part of the Menu item (see example). By default, the innermost item part includes only the text for the item.

items?

MenuItemModel[]

Sets the Menu items.

linkRender?

any

A React functional or class component which is used for rendering the link of the item (see example). The item link is a part of the visual representation of the item which, by default, includes an arrow, icon, and text.

offset

Offset

Specifies the absolute position of the ContextMenu. The Popover opens next to that point.

onClose

(event: SyntheticEvent<HTMLElement>) => void

Triggers when the ContextMenu needs to hide.

onSelect?

(event: MenuSelectEvent) => void

Fires when a Menu item is selected.

show

boolean

Controls the Popup visibility of the ContextMenu.

style?

React.CSSProperties

Sets additional CSS styles to the Menu.

vertical?

boolean

Specifies whether the Menu will be vertical (see example).