@progress/kendo-react-layout
Version:
React Layout components enable you to create a perceptive and intuitive layout of web projects. KendoReact Layout package
46 lines (45 loc) • 1.78 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { MenuHandle } from './components/Menu.js';
import { MenuItemModel } from './models/MenuItemModel';
import { BaseEvent } from '@progress/kendo-react-common';
import { PopupCloseEvent } from '@progress/kendo-react-popup';
/**
* The arguments for the `select` event of the Menu. If the item has a URL and the event is prevented, navigation to the URL does not occur.
*/
export interface MenuSelectEvent extends BaseEvent<MenuHandle> {
/**
* The id of selected item. 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 acquires a `0_0` id and the second acquires a `0_1` id.
*/
itemId: string;
/**
* The selected item.
*/
item: MenuItemModel;
}
/**
* The arguments for the `itemClose` event of the Menu.
*/
export interface MenuCloseEvent {
/**
* The Menu component handle.
*/
target: MenuHandle;
/**
* The id of the item whose popup was closed. 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 acquires a `0_0` id and the second acquires a `0_1` id.
*/
itemId: string;
/**
* The closed item.
*/
item: MenuItemModel;
/**
* The popup close event if the close was triggered by a popup closing .
*/
popupCloseEvent?: PopupCloseEvent;
}