UNPKG

@progress/kendo-react-layout

Version:

React Layout components enable you to create a perceptive and intuitive layout of web projects. KendoReact Layout package

51 lines (50 loc) 1.69 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { Offset } from '@progress/kendo-react-popup'; import { MenuProps } from '../menu/MenuProps'; import { MenuCloseEvent } from '../menu/events'; import * as React from 'react'; /** * The props of the [KendoReact ContextMenu component](https://www.telerik.com/kendo-react-ui/components/layout/contextmenu). */ export interface ContextMenuProps extends Omit<MenuProps, 'onClose' | 'openOnClick' | 'hoverOpenDelay' | 'hoverCloseDelay'> { /** * Controls the Popup visibility of the ContextMenu. * * Example: * ```jsx * <ContextMenu show={true} /> * ``` */ show: boolean; /** * Specifies the absolute position of the ContextMenu. The Popover opens next to that point. * * Example: * ```jsx * <ContextMenu offset={{ left: 100, top: 200 }} /> * ``` */ offset: Offset; /** * Triggers when the ContextMenu needs to hide. * * Example: * ```jsx * <ContextMenu onClose={(e) => setShow(false)} /> * ``` */ onClose: (event: MenuCloseEvent) => void; } /** * Represents the [KendoReact ContextMenu component](https://www.telerik.com/kendo-react-ui/components/layout/contextmenu). */ export declare const ContextMenu: { (props: ContextMenuProps): React.JSX.Element; displayName: string; };