UNPKG

@visactor/react-vtable

Version:

The react version of VTable

11 lines (10 loc) 559 B
import type { BaseTable } from '@visactor/vtable/es/core'; import type { BaseComponentProps } from '../base-component'; import type { TYPES } from '@visactor/vtable'; export type MenuProps = { renderMode?: 'canvas' | 'html'; defaultHeaderMenuItems?: TYPES.MenuListItem[]; contextMenuItems?: TYPES.MenuListItem[] | ((field: string, row: number, col: number, table?: BaseTable) => TYPES.MenuListItem[]); dropDownMenuHighlight?: TYPES.DropDownMenuHighlightInfo[]; } & BaseComponentProps; export declare const Menu: import("react").FC<MenuProps>;